OpenXE/classes/Modules/Calendar/Bootstrap.php

29 lines
565 B
PHP
Raw Normal View History

2021-05-21 08:49:41 +02:00
<?php
namespace Xentral\Modules\Calendar;
use Xentral\Core\DependencyInjection\ContainerInterface;
final class Bootstrap
{
/**
* @return array
*/
public static function registerServices()
{
return [
'CalendarService' => 'onInitCalendarService'
];
}
/**
* @param ContainerInterface $container
*
* @return CalendarService
*/
public static function onInitCalendarService(ContainerInterface $container)
{
return new CalendarService($container->get('Database'));
}
}