/**
  * 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');
 }
 /**
  * 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;
 }
Exemple #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');
 }
 /**
  * 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);
 }
 /**
  * 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');
 }