Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getActionArguments example
Shopware
(
)
->
Events
(
)
->
notify
(
__CLASS__ . '_PreDispatch_' .
$this
->controller_name,
$args
)
;
$this
->
preDispatch
(
)
;
if
(
$this
->
Request
(
)
->
isDispatched
(
)
&& !
$this
->
Response
(
)
->
isRedirect
(
)
)
{
$action_name
=
$this
->
Front
(
)
->
Dispatcher
(
)
->
getFullActionName
(
$this
->
Request
(
)
)
;
if
(
!
$event
=
Shopware
(
)
->
Events
(
)
->
notifyUntil
(
__CLASS__ . '_' .
$action_name
,
$args
)
)
{
$this
->
$action
(
...
$this
->
getActionArguments
(
$action
)
)
;
}
$this
->
postDispatch
(
)
;
}
// Fire "Secure"-PostDispatch-Events only if: // - Request is Dispatched // - Response in no Exception // - View has template
if
(
$this
->
Request
(
)
->
isDispatched
(
)
&& !
$this
->
Response
(
)
->
isException
(
)