Kaynağa Gözat

removed KernelInterface::reboot() method

Fabien Potencier 14 yıl önce
ebeveyn
işleme
a66d050bdb

+ 1 - 1
src/Symfony/Bundle/FrameworkBundle/Client.php

@@ -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;
     }

+ 0 - 13
src/Symfony/Component/HttpKernel/Kernel.php

@@ -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}
      */

+ 0 - 9
src/Symfony/Component/HttpKernel/KernelInterface.php

@@ -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.
      *

+ 0 - 6
src/Symfony/Component/HttpKernel/bootstrap.php

@@ -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) {