75 parent::__construct($context);
78 $this->_url = $context->
getUrl();
81 $this->_view = $context->
getView();
95 $profilerKey =
'CONTROLLER_ACTION:' .
$request->getFullActionName();
96 $eventParameters = [
'controller_action' => $this,
'request' =>
$request];
97 $this->_eventManager->dispatch(
'controller_action_predispatch', $eventParameters);
98 $this->_eventManager->dispatch(
'controller_action_predispatch_' .
$request->getRouteName(), $eventParameters);
99 $this->_eventManager->dispatch(
100 'controller_action_predispatch_' .
$request->getFullActionName(),
103 \Magento\Framework\Profiler::start($profilerKey);
106 if (
$request->isDispatched() && !$this->_actionFlag->get(
'', self::FLAG_NO_DISPATCH)) {
107 \Magento\Framework\Profiler::start(
'action_body');
109 \Magento\Framework\Profiler::start(
'postdispatch');
110 if (!$this->_actionFlag->get(
'', self::FLAG_NO_POST_DISPATCH)) {
111 $this->_eventManager->dispatch(
112 'controller_action_postdispatch_' .
$request->getFullActionName(),
115 $this->_eventManager->dispatch(
116 'controller_action_postdispatch_' .
$request->getRouteName(),
119 $this->_eventManager->dispatch(
'controller_action_postdispatch', $eventParameters);
121 \Magento\Framework\Profiler::stop(
'postdispatch');
122 \Magento\Framework\Profiler::stop(
'action_body');
124 \Magento\Framework\Profiler::stop($profilerKey);
151 if (isset($module)) {
_redirect($path, $arguments=[])
_forward($action, $controller=null, $module=null, array $params=null)
__construct(Context $context)
dispatch(RequestInterface $request)
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE]