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