public function handleRequest($uri)
{
// Check if package can do something with request
$handled = false;
// Check for UI controller
foreach ($this->package_controllers as $controller) {
$handled = $controller->handle($uri);
// Break and return response if already handled
if ($handled) {
return $handled;
}
}
// No candidates found
if (!$handled) {
return \App::abort(404, "Page not found.");
}
}