register(); Resource::getInstance()->register(); $dispatched = Flight::start(); if ($dispatched) { exit(); } else { Flight::notFound(); }