本文整理匯總了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);
}