Initial xentral_oss_20.3.c9ffacf
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?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'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user