/** * Constructor * * @param ContainerInterface $container * @param ParametersValidatorInterface $validator * * @api */ 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); }