Merge pull request #374 from skipperbent/v3-development

Stop router from processing routes if no valid route is found.
This commit is contained in:
Simon Sessingø
2018-02-27 00:14:24 +01:00
committed by GitHub
+5
View File
@@ -48,6 +48,11 @@ 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();
}