本文整理汇总了PHP中Illuminate\Contracts\Foundation\Application::bootstrapWith方法的典型用法代码示例。如果您正苦于以下问题:PHP Application::bootstrapWith方法的具体用法?PHP Application::bootstrapWith怎么用?PHP Application::bootstrapWith使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Illuminate\Contracts\Foundation\Application
的用法示例。
在下文中一共展示了Application::bootstrapWith方法的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();
}
示例2: 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();
}
示例3: 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();
}
示例4: bootstrap
/**
* Bootstrap the application for HTTP requests.
*
* @return void
*/
public function bootstrap()
{
if (!$this->app->hasBeenBootstrapped()) {
$this->app->bootstrapWith($this->bootstrappers());
}
}