// If $returned is a string, then the controller output something,
// probably a view, instead of echoing it directly. Send it along
// so it can be used with the output.
$this->
gatherOutput($cacheConfig,
$returned);
if ($this->enableFilters
) { $filters = Services::
filters();
$filters->
setResponse($this->response
);
// After filter debug toolbar requires 'total_execution'.
$this->totalTime =
$this->benchmark->
getElapsedTime('total_execution'
);
// Run "after" filters
$this->benchmark->
start('after_filters'
);
$response =
$filters->
run($uri, 'after'
);
$this->benchmark->
stop('after_filters'
);
if ($response instanceof ResponseInterface
) { $this->response =
$response;
} }