removed KernelInterface::reboot() method

This commit is contained in:
Fabien Potencier 2011-01-26 08:41:44 +01:00
parent 3eadf73cbd
commit a66d050bdb
4 changed files with 1 additions and 29 deletions

View File

@ -88,7 +88,7 @@ class Client extends BaseClient
protected function doRequest($request)
{
$returnValue = $this->kernel->handle($request);
$this->kernel->reboot();
$this->kernel->shutdown();
return $returnValue;
}

View File

@ -137,19 +137,6 @@ abstract class Kernel implements KernelInterface
$this->container = null;
}
/**
* Reboots the kernel.
*
* This method is mainly useful when doing functional testing.
*
* It is a shortcut for the call to shutdown() and boot().
*/
public function reboot()
{
$this->shutdown();
$this->boot();
}
/**
* {@inheritdoc}
*/

View File

@ -65,15 +65,6 @@ interface KernelInterface extends HttpKernelInterface, \Serializable
*/
function shutdown();
/**
* Reboots the kernel.
*
* This method is mainly useful when doing functional testing.
*
* It is a shortcut for the call to shutdown() and boot().
*/
function reboot();
/**
* Gets the registered bundle instances.
*

View File

@ -629,7 +629,6 @@ interface KernelInterface extends HttpKernelInterface, \Serializable
function registerContainerConfiguration(LoaderInterface $loader);
function boot();
function shutdown();
function reboot();
function getBundles();
function isClassInActiveBundle($class);
function getBundle($name, $first = true);
@ -726,11 +725,6 @@ abstract class Kernel implements KernelInterface
}
$this->container = null;
}
public function reboot()
{
$this->shutdown();
$this->boot();
}
public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
{
if (false === $this->booted) {