public function __construct(ContainerInterface $container, ParametersValidatorInterface $validator = null) { $this->container = $container; $eventsHandler = $container->get('red_kite_cms.events_handler'); $factoryRepository = $container->get('red_kite_cms.factory_repository'); $this->translator = $this->container->get('red_kite_cms.translator'); parent::__construct($eventsHandler, $factoryRepository, $validator); }
/** * Constructor * * @param null|EventsHandlerInterface $eventsHandler * @param null|FactoryRepositoryInterface $factoryRepository * @param null|ParametersValidatorInterface $validator * @param null|TranslatorInterface $translator */ public function __construct(EventsHandlerInterface $eventsHandler = null, FactoryRepositoryInterface $factoryRepository = null, ParametersValidatorInterface $validator = null, TranslatorInterface $translator = null) { parent::__construct($eventsHandler, $factoryRepository, $validator); $this->translator = $translator; }