当前位置: 首页>>代码示例>>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;未经允许,请勿转载。