Exemplo n.º 1
0
 /**
  * Constructor
  *
  * @param \RedKiteLabs\RedKiteCms\RedKiteCmsBundle\Core\EventsHandler\EventsHandlerInterface           $eventsHandler
  * @param \RedKiteLabs\RedKiteCms\RedKiteCmsBundle\Core\Content\Template\TemplateManager               $templateManager
  * @param \RedKiteLabs\RedKiteCms\RedKiteCmsBundle\Core\Repository\Factory\FactoryRepositoryInterface  $factoryRepository
  * @param \RedKiteLabs\RedKiteCms\RedKiteCmsBundle\Core\Content\Validator\ParametersValidatorInterface $validator
  *
  * @api
  */
 public function __construct(EventsHandlerInterface $eventsHandler, TemplateManager $templateManager, FactoryRepositoryInterface $factoryRepository, ParametersValidatorInterface $validator = null)
 {
     parent::__construct($eventsHandler, $validator);
     $this->templateManager = $templateManager;
     $this->factoryRepository = $factoryRepository;
     $this->pageRepository = $this->factoryRepository->createRepository('Page');
 }
Exemplo n.º 2
0
 /**
  * Constructor
  *
  * @param EventsHandlerInterface       $eventsHandler
  * @param BlockManagerFactoryInterface $blockManagerFactory
  * @param ParametersValidatorInterface $validator
  *
  * @api
  */
 public function __construct(EventsHandlerInterface $eventsHandler, BlockManagerFactoryInterface $blockManagerFactory, ParametersValidatorInterface $validator = null)
 {
     parent::__construct($eventsHandler, $validator);
     $this->blockManagerFactory = $blockManagerFactory;
 }
Exemplo n.º 3
0
 /**
  * Constructor
  *
  * @param \RedKiteLabs\RedKiteCms\RedKiteCmsBundle\Core\EventsHandler\EventsHandlerInterface           $eventsHandler
  * @param \RedKiteLabs\RedKiteCms\RedKiteCmsBundle\Core\Repository\Factory\FactoryRepositoryInterface  $factoryRepository
  * @param \RedKiteLabs\RedKiteCms\RedKiteCmsBundle\Core\Content\Validator\ParametersValidatorInterface $validator
  *
  * @api
  */
 public function __construct(EventsHandlerInterface $eventsHandler, FactoryRepositoryInterface $factoryRepository, ParametersValidatorInterface $validator = null)
 {
     parent::__construct($eventsHandler, $validator);
     $this->factoryRepository = $factoryRepository;
     $this->seoRepository = $this->factoryRepository->createRepository('Seo');
 }
Exemplo n.º 4
0
 /**
  * Constructor
  *
  * @param EventsHandlerInterface       $eventsHandler
  * @param FactoryRepositoryInterface   $factoryRepository
  * @param ParametersValidatorInterface $validator
  *
  * @api
  */
 public function __construct(EventsHandlerInterface $eventsHandler = null, FactoryRepositoryInterface $factoryRepository = null, ParametersValidatorInterface $validator = null)
 {
     parent::__construct($eventsHandler, $validator);
     $this->doSetFactoryRepository($factoryRepository);
 }
Exemplo n.º 5
0
 /**
  * Constructor
  *
  * @param EventsHandlerInterface             $eventsHandler
  * @param FactoryRepositoryInterface         $factoryRepository
  * @param ParametersValidatorLanguageManager $validator
  *
  * @api
  */
 public function __construct(EventsHandlerInterface $eventsHandler, FactoryRepositoryInterface $factoryRepository, ParametersValidatorLanguageManager $validator = null)
 {
     parent::__construct($eventsHandler, $validator);
     $this->factoryRepository = $factoryRepository;
     $this->languageRepository = $this->factoryRepository->createRepository('Language');
 }