1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kanboard_ynh.git synced 2024-09-03 19:36:17 +02:00
kanboard_ynh/sources/app/Subscriber/BootstrapSubscriber.php

24 lines
551 B
PHP
Raw Normal View History

2015-01-16 14:23:05 +01:00
<?php
namespace Subscriber;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
class BootstrapSubscriber extends Base implements EventSubscriberInterface
{
public static function getSubscribedEvents()
{
return array(
'session.bootstrap' => array('setup', 0),
'api.bootstrap' => array('setup', 0),
'console.bootstrap' => array('setup', 0),
);
}
public function setup()
{
$this->config->setupTranslations();
$this->config->setupTimezone();
}
}