messageDisplayState = $messageDisplayState; $this->config = $config; } /** * Turn on error messages * * @param ActionInterface $subject * @return void * @SuppressWarnings(PHPMD.UnusedFormalParameter) $subject required for interceptor */ public function beforeExecute(ActionInterface $subject) { if ($this->config->isVertexActive()) { $this->messageDisplayState->enable(); } } }