mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-25 06:00:28 +01:00
26 lines
586 B
PHP
26 lines
586 B
PHP
<?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);
|
|
}
|
|
}
|