Initial xentral_oss_20.3.c9ffacf

This commit is contained in:
Alex
2021-05-21 08:49:41 +02:00
parent 5406e4a551
commit 34e5ac43d9
18884 changed files with 2109867 additions and 0 deletions
+50
View File
@@ -0,0 +1,50 @@
<?php
namespace Xentral\Modules\Label;
use Xentral\Core\DependencyInjection\ContainerInterface;
final class Bootstrap
{
/**
* @return array
*/
public static function registerServices()
{
return [
'LabelModule' => 'onInitLabelModule',
'LabelService' => 'onInitLabelService',
'LabelGateway' => 'onInitLabelGateway',
];
}
/**
* @param ContainerInterface $container
*
* @return LabelModule
*/
public static function onInitLabelModule(ContainerInterface $container)
{
return new LabelModule($container->get('LabelService'), $container->get('LabelGateway'));
}
/**
* @param ContainerInterface $container
*
* @return LabelService
*/
public static function onInitLabelService(ContainerInterface $container)
{
return new LabelService($container->get('Database'), $container->get('LabelGateway'));
}
/**
* @param ContainerInterface $container
*
* @return LabelGateway
*/
public static function onInitLabelGateway(ContainerInterface $container)
{
return new LabelGateway($container->get('Database'));
}
}