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