本文整理汇总了PHP中Illuminate\Console\Command::blockMessage方法的典型用法代码示例。如果您正苦于以下问题:PHP Command::blockMessage方法的具体用法?PHP Command::blockMessage怎么用?PHP Command::blockMessage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Illuminate\Console\Command
的用法示例。
在下文中一共展示了Command::blockMessage方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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');
}
$this->demoSeedCoreModules($command);
$this->demoSeedAdditionalModules($command);
}
示例2: fire
/**
* Fire the install script.
*
* @param Command $command
*
* @return mixed
*/
public function fire(Command $command)
{
$this->command = $command;
if ($command->option('verbose')) {
$command->blockMessage('User', 'Creating Admin User...', 'comment');
}
$this->seedAdminRole();
$this->createFirstUser();
}
示例3: fire
/**
* Fire the install script.
*
* @param Command $command
*
* @throws Exception
*
* @return mixed
*/
public function fire(Command $command)
{
$this->command = $command;
if ($command->option('verbose')) {
$command->blockMessage('Requirements', 'Checking System Requirements ...', 'comment');
}
$this->checkPHPVersion();
$this->checkExtensions();
$this->showResults();
}
示例4: 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');
}
示例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]);
}
}
示例6: fire
/**
* Fire the install script
* @param Command $command
* @return mixed
*/
public function fire(Command $command)
{
$command->blockMessage('User Module', 'Starting the User Module setup...', 'comment');
$this->configure('Sentinel', $command);
}