當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Artisan::resolve方法代碼示例

本文整理匯總了PHP中Artisan::resolve方法的典型用法代碼示例。如果您正苦於以下問題:PHP Artisan::resolve方法的具體用法?PHP Artisan::resolve怎麽用?PHP Artisan::resolve使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Artisan的用法示例。


在下文中一共展示了Artisan::resolve方法的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1:

<?php

Artisan::resolve('ModelGeneratorCommand');
開發者ID:nelug,項目名稱:ControlDePlanilla,代碼行數:3,代碼來源:artisan.php

示例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');
開發者ID:adminrt,項目名稱:phphub,代碼行數:23,代碼來源:artisan.php

示例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');
開發者ID:flaviozantut,項目名稱:skorry,代碼行數:14,代碼來源:artisan.php

示例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');
開發者ID:stewartadam,項目名稱:invoice-ninja,代碼行數:16,代碼來源:artisan.php

示例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');
開發者ID:adriancatalinsv,項目名稱:fiip,代碼行數:17,代碼來源:artisan.php

示例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');
開發者ID:poseidonjm,項目名稱:invoice-ninja,代碼行數:13,代碼來源:artisan.php

示例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));
    }
}
開發者ID:BP4U,項目名稱:BFAdminCP,代碼行數:18,代碼來源:artisan.php

示例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.
|
*/
開發者ID:sahilsarpal15,項目名稱:fb-cover,代碼行數:13,代碼來源:artisan.php

示例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');
開發者ID:PoxyDoxy,項目名稱:lanager,代碼行數:15,代碼來源:artisan.php


注:本文中的Artisan::resolve方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。