Initial xentral_oss_20.3.c9ffacf
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user