Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
outputBufferingEnd example
$this
->
startBenchmark
(
)
;
$this
->
getRequestObject
(
)
;
$this
->
getResponseObject
(
)
;
$this
->
spoofRequestMethod
(
)
;
try
{
$this
->response =
$this
->
handleRequest
(
$routes
,
config
(
Cache::
class
)
,
$returnResponse
)
;
}
catch
(
ResponsableInterface|DeprecatedRedirectException
$e
)
{
$this
->
outputBufferingEnd
(
)
;
if
(
$e
instanceof DeprecatedRedirectException
)
{
$e
=
new
RedirectException
(
$e
->
getMessage
(
)
,
$e
->
getCode
(
)
,
$e
)
;
}
$this
->response =
$e
->
getResponse
(
)
;
}
catch
(
PageNotFoundException
$e
)
{
$this
->response =
$this
->
display404errors
(
$e
)
;
}
catch
(
Throwable
$e
)
{
$this
->
outputBufferingEnd
(
)
;
throw
$e
;
}