mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-30 16:40:28 +01:00
29 lines
580 B
PHP
29 lines
580 B
PHP
<?php
|
|
|
|
namespace Xentral\Components\Filesystem;
|
|
|
|
use Xentral\Core\DependencyInjection\ContainerInterface;
|
|
|
|
final class Bootstrap
|
|
{
|
|
/**
|
|
* @return array
|
|
*/
|
|
public static function registerServices()
|
|
{
|
|
return [
|
|
'FilesystemFactory' => 'onInitFilesystemFactory',
|
|
];
|
|
}
|
|
|
|
/**
|
|
* @param ContainerInterface $container
|
|
*
|
|
* @return FilesystemFactory
|
|
*/
|
|
public static function onInitFilesystemFactory(ContainerInterface $container)
|
|
{
|
|
return new FilesystemFactory($container->get('Database'));
|
|
}
|
|
}
|