Add more subscribers

This commit is contained in:
Frédéric Guillot
2014-12-27 21:11:11 -05:00
parent 0a14c8d5e5
commit 88d84073ae
13 changed files with 101 additions and 65 deletions

View File

@@ -0,0 +1,22 @@
<?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),
);
}
public function setup()
{
$this->container['config']->setupTranslations();
$this->container['config']->setupTimezone();
}
}