mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-16 13:07:14 +01:00
32 lines
655 B
PHP
32 lines
655 B
PHP
|
<?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);
|
||
|
}
|
||
|
}
|