[HttpKernel] made all core.* events take a request_type parameter for consistency

This commit is contained in:
Fabien Potencier 2010-08-09 18:10:18 +02:00
parent 485400dd51
commit 9452437c51

View File

@ -123,7 +123,7 @@ class HttpKernel implements HttpKernelInterface
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