当前位置: 首页>>代码示例>>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;未经允许,请勿转载。