/**
  * Constructor
  */
 public function __construct(Rsc_Environment $environment, Rsc_Http_Request $request)
 {
     parent::__construct($environment, $request);
     if ($environment->isPluginPage() && !$environment->isModule('promo', 'welcome') && !$environment->getConfig()->get('welcome_page_was_showed')) {
         return $this->redirect($this->generateUrl('promo', 'welcome'));
     }
 }
Пример #2
0
 /**
  * {@inheritdoc}
  */
 public function __construct(Rsc_Environment $environment, Rsc_Http_Request $request)
 {
     parent::__construct($environment, $request);
     $this->modelsFactory = new SocialSharing_Core_ModelsFactory($environment);
 }
 /**
  * Constructor
  */
 public function __construct(Rsc_Environment $environment, Rsc_Http_Request $request)
 {
     parent::__construct($environment, $request);
 }