Example #1
0
 protected function startup()
 {
     parent::startup();
     if ($this->lang !== $this->websiteManager->defaultLanguage) {
         $this->pageListener->setLocale($this->getLanguage());
     }
 }
Example #2
0
 protected function startup()
 {
     parent::startup();
     $this->size = $this->getParameter('size');
     $this->format = $this->getParameter('format');
     $this->type = $this->getParameter('type');
     $this->url = $this->getParameter('url');
 }
Example #3
0
 /**
  * @return void
  */
 protected function startup()
 {
     parent::startup();
     // Language
     $this->checkLanguage();
     // Setup translator
     $this->translator->setLang($this->lang);
 }