Skip to content

Commit

Permalink
[HttpKernel] made all core.* events take a request_type parameter for…
Browse files Browse the repository at this point in the history
… consistency
  • Loading branch information
fabpot committed Aug 9, 2010
1 parent 485400d commit 9452437
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Components/HttpKernel/HttpKernel.php
Expand Up @@ -123,7 +123,7 @@ protected function handleRaw(Request $request, $type = self::MASTER_REQUEST)
throw new NotFoundHttpException('Unable to find the controller.');
}

$event = $this->dispatcher->filter(new Event($this, 'core.controller', array('request' => $request)), $controller);
$event = $this->dispatcher->filter(new Event($this, 'core.controller', array('request_type' => $type, 'request' => $request)), $controller);
$controller = $event->getReturnValue();

// controller must be a callable
Expand Down

0 comments on commit 9452437

Please sign in to comment.