removed KernelInterface::reboot() method
This commit is contained in:
parent
3eadf73cbd
commit
a66d050bdb
@ -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;
|
||||
}
|
||||
|
@ -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}
|
||||
*/
|
||||
|
@ -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.
|
||||
*
|
||||
|
@ -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) {
|
||||
|
Reference in New Issue
Block a user