本文整理汇总了PHP中Artisan::resolve方法的典型用法代码示例。如果您正苦于以下问题:PHP Artisan::resolve方法的具体用法?PHP Artisan::resolve怎么用?PHP Artisan::resolve使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Artisan
的用法示例。
在下文中一共展示了Artisan::resolve方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<?php
Artisan::resolve('ModelGeneratorCommand');
示例2: TopicMarkdownConvertionCommand
<?php
/*
|--------------------------------------------------------------------------
| Register The Artisan Commands
|--------------------------------------------------------------------------
|
| Each available Artisan command must be registered with the console so
| that it is available to be called. We'll register every command so
| the console gets access to each of the command object instances.
|
*/
Artisan::add(new TopicMarkdownConvertionCommand());
Artisan::add(new TopicMakeExcerptCommand());
Artisan::add(new UserRenameCommand());
Artisan::add(new UserMigrateGithubUsernameCommand());
Artisan::add(new ReplyMarkdownCommand());
// Backing up database
Artisan::add(new DatabaseBackupCommand());
Artisan::add(new OpcacheClearCommand());
Artisan::add(new CacheAvatarsCommand());
Artisan::add(new ContributorSyncCommand());
Artisan::resolve('InstallCommand');
示例3:
<?php
/*
|--------------------------------------------------------------------------
| Register The Artisan Commands
|--------------------------------------------------------------------------
|
| Each available Artisan command must be registered with the console so
| that it is available to be called. We'll register every command so
| the console gets access to each of the command object instances.
|
*/
Artisan::resolve('PostMakeCommand');
Artisan::resolve('ClearAssetsCommand');
示例4:
<?php
/*
|--------------------------------------------------------------------------
| Register The Artisan Commands
|--------------------------------------------------------------------------
|
| Each available Artisan command must be registered with the console so
| that it is available to be called. We'll register every command so
| the console gets access to each of the command object instances.
|
*/
Artisan::resolve('SendRecurringInvoices');
Artisan::resolve('CreateRandomData');
Artisan::resolve('ResetData');
Artisan::resolve('ImportTimesheetData');
示例5:
<?php
/*
|--------------------------------------------------------------------------
| Register The Artisan Commands
|--------------------------------------------------------------------------
|
| Each available Artisan command must be registered with the console so
| that it is available to be called. We'll register every command so
| the console gets access to each of the command object instances.
|
*/
Artisan::resolve('FIIP\\Commands\\BackupDbCommand');
Artisan::resolve('FIIP\\Commands\\BackupFilesCommand');
Artisan::resolve('FIIP\\Commands\\ApplyReminderCommand');
Artisan::resolve('FIIP\\Commands\\SubscribeUsersCommand');
Artisan::resolve('FIIP\\Commands\\RejectedCommand');
示例6:
<?php
/*
|--------------------------------------------------------------------------
| Register The Artisan Commands
|--------------------------------------------------------------------------
|
| Each available Artisan command must be registered with the console so
| that it is available to be called. We'll register every command so
| the console gets access to each of the command object instances.
|
*/
Artisan::resolve('SendRecurringInvoices');
示例7: foreach
<?php
/*
|--------------------------------------------------------------------------
| Register The Artisan Commands
|--------------------------------------------------------------------------
|
| Each available Artisan command must be registered with the console so
| that it is available to be called. We'll register every command so
| the console gets access to each of the command object instances.
|
*/
foreach (glob(app_path() . '/bfacp/Commands/*.php') as $file) {
if (preg_match("/([a-zA-Z]+\\.php)/", $file, $matches)) {
$classname = str_replace('.php', null, $matches[1]);
Artisan::resolve(sprintf('BFACP\\Commands\\%s', $classname));
}
}
示例8:
<?php
Artisan::resolve('Coverreload');
/*
|--------------------------------------------------------------------------
| Register The Artisan Commands
|--------------------------------------------------------------------------
|
| Each available Artisan command must be registered with the console so
| that it is available to be called. We'll register every command so
| the console gets access to each of the command object instances.
|
*/
示例9:
<?php
/*
|--------------------------------------------------------------------------
| Register The Artisan Commands
|--------------------------------------------------------------------------
|
| Each available Artisan command must be registered with the console so
| that it is available to be called. We'll register every command so
| the console gets access to each of the command object instances.
|
*/
Artisan::add(new Zeropingheroes\Lanager\Console\Install());
Artisan::resolve('Zeropingheroes\\Lanager\\Console\\SteamImportApps');
Artisan::resolve('Zeropingheroes\\Lanager\\Console\\SteamImportUserStates');