當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Application::flush方法代碼示例

本文整理匯總了PHP中Illuminate\Foundation\Application::flush方法的典型用法代碼示例。如果您正苦於以下問題:PHP Application::flush方法的具體用法?PHP Application::flush怎麽用?PHP Application::flush使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Illuminate\Foundation\Application的用法示例。


在下文中一共展示了Application::flush方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: tearDown

 protected function tearDown()
 {
     Schema::drop('testing_table');
     $this->kernel->call('migrate:rollback');
     $this->app->flush();
     $this->app = null;
     parent::tearDown();
 }
開發者ID:ProfessorFrancken,項目名稱:ProfessorFrancken,代碼行數:8,代碼來源:IlluminateRepositoryFeature.php

示例2: stopApplication

 /**
  * Stop the application
  *
  * @return void
  */
 public function stopApplication()
 {
     if ($this->hasApplicationBeenStarted()) {
         foreach ($this->beforeApplicationDestroyedCallbacks as $callback) {
             call_user_func($callback);
         }
         $this->app->flush();
         $this->app = null;
         Facade::clearResolvedInstances();
         Facade::setFacadeApplication(null);
     }
 }
開發者ID:aedart,項目名稱:testing-laravel,代碼行數:17,代碼來源:ApplicationInitiatorTrait.php

示例3: tearDown

 /**
  * Clean up the testing environment before the next test.
  *
  * @return void
  */
 public function tearDown()
 {
     if (class_exists('Mockery')) {
         Mockery::close();
     }
     if ($this->app) {
         foreach ($this->beforeApplicationDestroyedCallbacks as $callback) {
             call_user_func($callback);
         }
         $this->app->flush();
         $this->app = null;
     }
     if (property_exists($this, 'serverVariables')) {
         $this->serverVariables = [];
     }
 }
開發者ID:ZerglingGo,項目名稱:framework,代碼行數:21,代碼來源:TestCase.php

示例4: flush

 /**
  * Flush the container of all bindings and resolved instances.
  *
  * @return void 
  * @static 
  */
 public static function flush()
 {
     \Illuminate\Foundation\Application::flush();
 }
開發者ID:satriashp,項目名稱:tour,代碼行數:10,代碼來源:_ide_helper.php

示例5: tearDown

 /**
  * Tear down test case.
  */
 protected function tearDown()
 {
     $this->app->flush();
 }
開發者ID:sellerlabs,項目名稱:illuminated,代碼行數:7,代碼來源:IlluminatedTestCase.php

示例6: flush

 /**
  * Flush the container of all bindings and resolved instances.
  *
  * @return void
  */
 public function flush()
 {
     parent::flush();
     $this->hasBeenBootstrapped = false;
 }
開發者ID:quetzyg,項目名稱:foundation,代碼行數:10,代碼來源:Application.php

示例7: tearDownLaravel

 /**
  * Clean up the testing environment before the next test.
  *
  * @tearDown
  * @return void
  */
 public function tearDownLaravel()
 {
     if ($this->app) {
         $this->app->flush();
     }
 }
開發者ID:digitalagua,項目名稱:Integrated,代碼行數:12,代碼來源:Application.php


注:本文中的Illuminate\Foundation\Application::flush方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。