소스 검색

[FrameworkBundle] added a note

Fabien Potencier 14 년 전
부모
커밋
7941ff61f0
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      src/Symfony/Bundle/FrameworkBundle/Client.php

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

@@ -26,7 +26,7 @@ use Symfony\Component\HttpFoundation\Response;
 class Client extends BaseClient
 {
     private $hasPerformedRequest = false;
-    
+
     /**
      * Returns the container.
      *
@@ -70,6 +70,8 @@ class Client extends BaseClient
      */
     protected function doRequest($request)
     {
+        // avoid shutting down the Kernel if no request has been performed yet
+        // WebTestCase::createClient() boots the Kernel but do not handle a request
         if ($this->hasPerformedRequest) {
             $this->kernel->shutdown();
         } else {