summaryrefslogtreecommitdiff
path: root/app/Subscriber/BootstrapSubscriber.php
blob: 35d0eff9e341846d281cc85aba1e55a500398b14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?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();
    }
}