当前位置: 首页>>代码示例>>PHP>>正文


PHP Application::loadDeferredProviders方法代码示例

本文整理汇总了PHP中Illuminate\Contracts\Foundation\Application::loadDeferredProviders方法的典型用法代码示例。如果您正苦于以下问题:PHP Application::loadDeferredProviders方法的具体用法?PHP Application::loadDeferredProviders怎么用?PHP Application::loadDeferredProviders使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Illuminate\Contracts\Foundation\Application的用法示例。


在下文中一共展示了Application::loadDeferredProviders方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: bootstrap

 /**
  * Bootstrap the application for HTTP requests.
  *
  * @return void
  */
 public function bootstrap()
 {
     if (!$this->app->hasBeenBootstrapped()) {
         $this->app->bootstrapWith($this->bootstrappers);
     }
     $this->app->loadDeferredProviders();
 }
开发者ID:consolle,项目名称:framework,代码行数:12,代码来源:Application.php

示例2: call

 /**
  * Run an Artisan console command by name.
  *
  * @param  string  $command
  * @param  array  $parameters
  * @return int
  */
 public function call($command, array $parameters = array())
 {
     $this->bootstrap();
     // If we are calling a arbitary command from within the application, we will load
     // all of the available deferred providers which will make all of the commands
     // available to an application. Otherwise the command will not be available.
     $this->app->loadDeferredProviders();
     return $this->getArtisan()->call($command, $parameters);
 }
开发者ID:betes-curieuses-design,项目名称:ElieJosiePhotographie,代码行数:16,代码来源:Kernel.php

示例3: bootstrap

 /**
  * Bootstrap the application for HTTP requests.
  *
  * @return void
  */
 public function bootstrap()
 {
     if (!$this->app->hasBeenBootstrapped()) {
         $this->app->bootstrapWith($this->bootstrappers());
     }
     // If we are just calling another queue command, we will only load the queue
     // service provider. This saves a lot of file loading as we don't need to
     // load the providers with commands for every possible console command.
     $this->isCallingAQueueCommand() ? $this->app->loadDeferredProvider('queue') : $this->app->loadDeferredProviders();
 }
开发者ID:sergey-kudriavtsev,项目名称:framework-1,代码行数:15,代码来源:Kernel.php

示例4: bootstrap

 /**
  * Bootstrap the application for artisan commands.
  *
  * @return void
  */
 public function bootstrap()
 {
     if (!$this->app->hasBeenBootstrapped()) {
         $this->app->bootstrapWith($this->bootstrappers());
     }
     // If we are calling a arbitary command from within the application, we will load
     // all of the available deferred providers which will make all of the commands
     // available to an application. Otherwise the command will not be available.
     $this->app->loadDeferredProviders();
 }
开发者ID:qasem2rubik,项目名称:laravel,代码行数:15,代码来源:Kernel.php


注:本文中的Illuminate\Contracts\Foundation\Application::loadDeferredProviders方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。