本文整理汇总了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']);
}
示例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');
}
示例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');
}
示例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');
}
}
示例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]);
}
}