OpenXE/classes/Modules/Postat/Bootstrap.php

26 lines
586 B
PHP
Raw Normal View History

2021-05-21 08:49:41 +02:00
<?php
declare(strict_types=1);
namespace Xentral\Modules\Postat;
use Xentral\Core\DependencyInjection\ContainerInterface;
use Xentral\Modules\Postat\SOAP\SoapServiceFactory;
final class Bootstrap
{
public static function registerServices(): array
{
return [
'PostAtSoapClientFactory' => 'onInitPostAtSoapClientFactory',
];
}
public static function onInitPostAtSoapClientFactory(ContainerInterface $container): SoapServiceFactory
{
$logger = $container->get('Logger');
return new SoapServiceFactory($logger);
}
}