mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-16 13:07:14 +01:00
30 lines
707 B
PHP
30 lines
707 B
PHP
|
<?php
|
||
|
|
||
|
namespace Xentral\Modules\RetailPriceTemplate;
|
||
|
|
||
|
use Xentral\Core\DependencyInjection\ContainerInterface;
|
||
|
use Xentral\Modules\RetailPriceTemplate\Service\RetailPriceTemplateService;
|
||
|
|
||
|
final class Bootstrap
|
||
|
{
|
||
|
/**
|
||
|
* @return array
|
||
|
*/
|
||
|
public static function registerServices()
|
||
|
{
|
||
|
return [
|
||
|
'RetailPriceTemplateService' => 'onInitRetailPriceTemplateService',
|
||
|
];
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @param ContainerInterface $container
|
||
|
*
|
||
|
* @return RetailPriceTemplateService
|
||
|
*/
|
||
|
public static function onInitRetailPriceTemplateService(ContainerInterface $container)
|
||
|
{
|
||
|
return new RetailPriceTemplateService($container->get('Database'));
|
||
|
}
|
||
|
}
|