Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (Context $context) | |
dispatch (RequestInterface $request) | |
getActionFlag () | |
![]() | |
__construct (Context $context) | |
dispatch (RequestInterface $request) | |
getRequest () | |
getResponse () | |
![]() | |
execute () | |
Protected Member Functions | |
_forward ($action, $controller=null, $module=null, array $params=null) | |
_redirect ($path, $arguments=[]) | |
Protected Attributes | |
$_objectManager | |
$_sessionNamespace | |
$_eventManager | |
$_actionFlag | |
$_redirect | |
$_view | |
$_url | |
$messageManager | |
![]() | |
$_request | |
$_response | |
$resultRedirectFactory | |
$resultFactory | |
Additional Inherited Members | |
![]() | |
const | FLAG_NO_DISPATCH = 'no-dispatch' |
const | FLAG_NO_POST_DISPATCH = 'no-postDispatch' |
const | FLAG_NO_DISPATCH_BLOCK_EVENT = 'no-beforeGenerateLayoutBlocksDispatch' |
const | PARAM_NAME_BASE64_URL = 'r64' |
const | PARAM_NAME_URL_ENCODED = 'uenc' |
Extend from this class to create actions controllers in frontend area of your application. It contains standard action behavior (event dispatching, flag checks) Action classes that do not extend from this class will lose this behavior and might not function correctly
TODO: Remove this class. Allow implementation of Action Controllers by just implementing Action Interface.
@api @SuppressWarnings(PHPMD.CouplingBetweenObjects) @SuppressWarnings(PHPMD.NumberOfChildren)
Definition at line 25 of file Action.php.
__construct | ( | Context | $context | ) |
Context | $context |
Definition at line 73 of file Action.php.
|
protected |
Throw control to different action (control and module if was specified).
string | $action | |
string | null | $controller | |
string | null | $module | |
array | null | $params |
Definition at line 137 of file Action.php.
|
protected |
Set redirect into response
string | $path | |
array | $arguments |
Definition at line 167 of file Action.php.
dispatch | ( | RequestInterface | $request | ) |
Dispatch request
RequestInterface | $request |
NotFoundException |
Definition at line 92 of file Action.php.
getActionFlag | ( | ) |
|
protected |
Definition at line 48 of file Action.php.
|
protected |
Definition at line 43 of file Action.php.
|
protected |
Definition at line 30 of file Action.php.
|
protected |
Definition at line 53 of file Action.php.
|
protected |
Definition at line 38 of file Action.php.
|
protected |
Definition at line 63 of file Action.php.
|
protected |
Definition at line 58 of file Action.php.
|
protected |
Definition at line 68 of file Action.php.