mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-14 20:17:14 +01:00
29 lines
565 B
PHP
29 lines
565 B
PHP
<?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'));
|
|
}
|
|
}
|