mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-25 14:10:28 +01:00
32 lines
738 B
PHP
32 lines
738 B
PHP
|
<?php
|
||
|
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
namespace Xentral\Modules\PaymentTransaction;
|
||
|
|
||
|
use Xentral\Core\DependencyInjection\ContainerInterface;
|
||
|
use Xentral\Modules\PaymentTransaction\Service\PaymentDocumentService;
|
||
|
|
||
|
final class Bootstrap
|
||
|
{
|
||
|
/**
|
||
|
* @return array
|
||
|
*/
|
||
|
public static function registerServices(): array
|
||
|
{
|
||
|
return [
|
||
|
'PaymentDocumentService' => 'onInitPaymentDocumentService',
|
||
|
];
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @param ContainerInterface $container
|
||
|
*
|
||
|
* @return PaymentDocumentService
|
||
|
*/
|
||
|
public static function onInitPaymentDocumentService(ContainerInterface $container): PaymentDocumentService
|
||
|
{
|
||
|
return new PaymentDocumentService($container->get('Database'));
|
||
|
}
|
||
|
}
|