Anonymous
public text v1 · immutable try {
$response = $frontController->dispatch();
$response->sendResponse();
} catch (Exception $e) {
$error = $e->getMessage();
$frontController->getRequest()->setControllerName('error')
->setActionName('error')
->setDispatched(false);
}