コード例 #1
0
ファイル: Client.php プロジェクト: Maksold/platform
 /**
  * {@inheritdoc}
  */
 protected function doRequest($request)
 {
     if ($this->hasPerformedRequest) {
         $this->kernel->shutdown();
         $this->kernel->boot();
     } else {
         $this->hasPerformedRequest = true;
     }
     $this->refreshDoctrineConnection();
     $response = $this->kernel->handle($request);
     if ($this->kernel instanceof TerminableInterface) {
         $this->kernel->terminate($request, $response);
     }
     return $response;
 }
コード例 #2
0
 /**
  * Shuts the kernel down if it was used in the test.
  */
 protected static function ensureKernelShutdown()
 {
     if (null !== static::$kernel) {
         $container = static::$kernel->getContainer();
         static::$kernel->shutdown();
         if ($container instanceof ResettableContainerInterface) {
             $container->reset();
         }
     }
 }
コード例 #3
0
ファイル: KernelTestCase.php プロジェクト: raphydev/onep
 /**
  * Shuts the kernel down if it was used in the test.
  */
 protected static function ensureKernelShutdown()
 {
     if (null !== static::$kernel) {
         static::$kernel->shutdown();
     }
 }
コード例 #4
0
 public function tearDown()
 {
     if ($this->kernel) {
         $this->kernel->shutdown();
     }
 }
コード例 #5
0
ファイル: WebTestCase.php プロジェクト: ccq18/EduSoho
 /**
  * Shuts the kernel down if it was used in the test.
  */
 protected function tearDown()
 {
     if (null !== static::$kernel) {
         static::$kernel->shutdown();
     }
 }
コード例 #6
0
 /**
  * @inheritdoc
  */
 public function tearDown()
 {
     static::$kernel->shutdown();
 }
コード例 #7
0
 public function tearDown()
 {
     // Shutdown the kernel.
     $this->kernel->shutdown();
     parent::tearDown();
 }
コード例 #8
0
ファイル: KernelProxy.php プロジェクト: Maksold/platform
 /**
  * {@inheritdoc}
  */
 public function shutdown()
 {
     $this->kernel->shutdown();
 }