[Foundation] fixed request value when passed to the handle method

This commit is contained in:
Fabien Potencier 2010-04-08 11:12:58 +02:00
parent 1683f46279
commit d9e444b440
2 changed files with 8 additions and 0 deletions

View File

@ -140,6 +140,10 @@ abstract class Kernel implements \Serializable
{
$request = $this->container->getRequestService();
}
else
{
$this->container->setService('request', $request);
}
return $this->container->getRequestHandlerService()->handle($request);
}

View File

@ -416,6 +416,10 @@ abstract class Kernel implements \Serializable
{
$request = $this->container->getRequestService();
}
else
{
$this->container->setService('request', $request);
}
return $this->container->getRequestHandlerService()->handle($request);
}