/** * Constructor * * @param Context $context * @param Registry $registry * @param SynonymFactory $synonymFactory * @param ForwardFactory $resultForwardFactory */ public function __construct(Context $context, Registry $registry, SynonymFactory $synonymFactory, ForwardFactory $resultForwardFactory) { $this->context = $context; $this->registry = $registry; $this->synonymFactory = $synonymFactory; $this->session = $context->getSession(); $this->resultForwardFactory = $resultForwardFactory; parent::__construct($context); }