Optimisations

This commit is contained in:
Simon Sessingo
2018-02-27 00:19:44 +01:00
parent 98bf95bfc9
commit 6d7d07669b
2 changed files with 5 additions and 5 deletions
+5
View File
@@ -200,6 +200,11 @@ class Router
*/
public function loadRoutes()
{
// Stop processing routes if no valid route is found.
if($this->request->getRewriteRoute() === null && $this->request->getUrl() === null) {
return;
}
/* Initialize boot-managers */
/* @var $manager IRouterBootManager */
foreach ($this->bootManagers as $manager) {
-5
View File
@@ -48,11 +48,6 @@ class SimpleRouter
*/
public static function start()
{
// Stop processing routes if no valid route is found.
if(static::request()->getUrl()->getPath() === null) {
return;
}
echo static::router()->routeRequest();
}