summaryrefslogtreecommitdiff
path: root/app/Subscriber/BootstrapSubscriber.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Subscriber/BootstrapSubscriber.php')
-rw-r--r--app/Subscriber/BootstrapSubscriber.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/app/Subscriber/BootstrapSubscriber.php b/app/Subscriber/BootstrapSubscriber.php
new file mode 100644
index 00000000..793ba3e7
--- /dev/null
+++ b/app/Subscriber/BootstrapSubscriber.php
@@ -0,0 +1,23 @@
+<?php
+
+namespace Subscriber;
+
+use Symfony\Component\EventDispatcher\EventSubscriberInterface;
+
+class BootstrapSubscriber extends \Core\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();
+ }
+}