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


PHP Command::callSilent方法代码示例

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


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

示例1: seedAdminRole

 /**
  * @return mixed
  */
 public function seedAdminRole()
 {
     if ($this->command->option('verbose')) {
         return $this->command->call('db:seed', ['--class' => 'Modules\\User\\Database\\Seeders\\GroupSeedTableSeeder']);
     }
     return $this->command->callSilent('db:seed', ['--class' => 'Modules\\User\\Database\\Seeders\\GroupSeedTableSeeder']);
 }
开发者ID:SocietyCMS,项目名称:Core,代码行数:10,代码来源:AdminUserInstaller.php

示例2: fire

 /**
  * Fire the install script.
  *
  * @param Command $command
  *
  * @return mixed
  */
 public function fire(Command $command)
 {
     if ($command->option('verbose')) {
         $command->call('key:generate');
         $command->call('api:key-generate');
         return;
     }
     $command->callSilent('key:generate');
     $command->callSilent('api:key-generate');
 }
开发者ID:SocietyCMS,项目名称:Core,代码行数:17,代码来源:SetAppKey.php

示例3: fire

 /**
  * Fire the install script.
  *
  * @param Command $command
  *
  * @return mixed
  */
 public function fire(Command $command)
 {
     if ($command->option('verbose')) {
         $command->blockMessage('Themes', 'Publishing theme assets ...', 'comment');
     }
     if ($command->option('verbose')) {
         $command->call('stylist:publish');
         return;
     }
     $command->callSilent('stylist:publish');
 }
开发者ID:SocietyCMS,项目名称:Core,代码行数:18,代码来源:ThemeAssets.php

示例4: fire

 /**
  * Fire the install script
  * @param  Command $command
  * @return mixed
  */
 public function fire(Command $command)
 {
     $this->command = $command;
     // Publish asgard configs
     if ($this->command->option('verbose')) {
         $this->command->call('vendor:publish', ['--provider' => 'Modules\\Core\\Providers\\CoreServiceProvider']);
     } else {
         $this->command->callSilent('vendor:publish', ['--provider' => 'Modules\\Core\\Providers\\CoreServiceProvider']);
     }
     if (!$this->checkIsInstalled()) {
         return $this->command->error('No user driver was installed. Please check the presence of a Service Provider');
     }
     $this->publish();
     $this->configure();
     $this->migrate();
     $this->seed();
     $this->createFirstUser();
     if ($this->command->option('verbose')) {
         $command->info($this->driver . ' succesfully configured');
     }
 }
开发者ID:mikemand,项目名称:Core,代码行数:26,代码来源:ProviderInstaller.php

示例5: fire

 /**
  * Fire the install script
  * @param  Command $command
  * @return mixed
  */
 public function fire(Command $command)
 {
     if ($command->option('verbose')) {
         $command->blockMessage('Seeds', 'Running the module seeds ...', 'comment');
     }
     foreach ($this->modules as $module) {
         if ($command->option('verbose')) {
             $command->call('module:seed', ['module' => $module]);
             continue;
         }
         $command->callSilent('module:seed', ['module' => $module]);
     }
 }
开发者ID:Houbsi,项目名称:Core,代码行数:18,代码来源:ModuleSeeders.php


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