OpenXE/classes/Modules/EPost/Bootstrap.php

32 lines
655 B
PHP
Raw Normal View History

2021-05-21 08:49:41 +02:00
<?php
namespace Xentral\Modules\EPost;
use Xentral\Core\DependencyInjection\ContainerInterface;
use Xentral\Modules\DocuvitaApi\Exception\ConfigurationMissingException;
final class Bootstrap
{
/**
* @return array
*/
public static function registerServices()
{
return [
'EPostService' => 'onInitEPostService',
];
}
/**
* @param ContainerInterface $container
*
* @throws ConfigurationMissingException
*
* @return EPostService
*/
public static function onInitEPostService(ContainerInterface $container)
{
return new EPostService($container);
}
}