mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-15 20:47:15 +01:00
32 lines
757 B
PHP
32 lines
757 B
PHP
|
<?php
|
||
|
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
namespace Xentral\Modules\EbayPayment;
|
||
|
|
||
|
use Xentral\Core\DependencyInjection\ContainerInterface;
|
||
|
use Xentral\Modules\EbayPayment\Service\EbayPaymentDocumentService;
|
||
|
|
||
|
final class Bootstrap
|
||
|
{
|
||
|
/**
|
||
|
* @return array
|
||
|
*/
|
||
|
public static function registerServices(): array
|
||
|
{
|
||
|
return [
|
||
|
EbayPaymentDocumentService::class => 'onInitEbayPaymentDocumentService',
|
||
|
];
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @param ContainerInterface $container
|
||
|
*
|
||
|
* @return EbayPaymentDocumentService
|
||
|
*/
|
||
|
public static function onInitEbayPaymentDocumentService(ContainerInterface $container): EbayPaymentDocumentService
|
||
|
{
|
||
|
return new EbayPaymentDocumentService($container->get('Database'));
|
||
|
}
|
||
|
}
|