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