Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getActionMethod example
if
(
$controller
instanceof ContainerAwareInterface
)
{
$container
=
Shopware
(
)
->
Container
(
)
;
$controller
->
setContainer
(
$container
)
;
}
$controller
->
initController
(
$request
,
$response
)
;
$controller
->
setFront
(
$this
->
Front
(
)
)
;
$action
=
$this
->
getActionMethod
(
$request
)
;
$request
->
setDispatched
(
true
)
;
$disableOb
=
$this
->
Front
(
)
->
getParam
(
'disableOutputBuffering'
)
;
$obLevel
=
ob_get_level
(
)
;
if
(
empty
(
$disableOb
)
)
{
ob_start
(
)
;
}
try
{
$controller
->
dispatch
(
$action
)
;
}