Commit 86554c8e authored by neclimdul's avatar neclimdul

More clear documentation and routing function name

parent 3ef99f90
......@@ -9,17 +9,14 @@
/**
* Execute the page callback associated with the current path.
* Execute the page callback associated with given request.
*
* @param $path
* The drupal path whose handler is to be be executed. If set to NULL, then
* the current path is used.
* @param $deliver
* (optional) A boolean to indicate whether the content should be sent to the
* browser using the appropriate delivery callback (TRUE) or whether to return
* the result to the caller (FALSE).
* @param Request $request
* The Symfony Request object used to determine what will be executed.
* @return Response
* A Symfony Response object describing the response to deliver to the client.
*/
function router_execute_active_handler($request) {
function router_execute_request(Request $request) {
try {
// Resolve a routing context(path, etc) using the routes object to a
......
......@@ -25,6 +25,6 @@
// A request object from the HTTPFoundation to tell us about the request.
$request = Request::createFromGlobals();
// Run our router, get a response.
$response = router_execute_active_handler($request);
$response = router_execute_request($request);
// Output response.
$response->send();
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment