add comment to boostrap.
This commit is contained in:
parent
d02f4deb8f
commit
3780da4ad1
|
@ -149,10 +149,10 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Route the request to the proper route in the application. If a
|
* If the requset URI has too many segments, we will bomb out of
|
||||||
* route is found, the route will be called via the request class
|
* the request. This is too avoid potential DDoS attacks against
|
||||||
* static property. If no route is found, the 404 response will
|
* the framework by overloading the controller lookup method
|
||||||
* be returned to the browser.
|
* with thousands of segments.
|
||||||
*/
|
*/
|
||||||
$uri = URI::current();
|
$uri = URI::current();
|
||||||
|
|
||||||
|
@ -161,6 +161,12 @@
|
||||||
throw new \Exception("Invalid request. Too many URI segments.");
|
throw new \Exception("Invalid request. Too many URI segments.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Route the request to the proper route in the application. If a
|
||||||
|
* route is found, the route will be called via the request class
|
||||||
|
* static property. If no route is found, the 404 response will
|
||||||
|
* be returned to the browser.
|
||||||
|
*/
|
||||||
Request::$route = Routing\Router::route(Request::method(), $uri);
|
Request::$route = Routing\Router::route(Request::method(), $uri);
|
||||||
|
|
||||||
if (is_null(Request::$route))
|
if (is_null(Request::$route))
|
||||||
|
|
Loading…
Reference in New Issue