本文整理汇总了PHP中Artisan::add方法的典型用法代码示例。如果您正苦于以下问题:PHP Artisan::add方法的具体用法?PHP Artisan::add怎么用?PHP Artisan::add使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Artisan
的用法示例。
在下文中一共展示了Artisan::add方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: DemoInstallCommand
<?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 DemoInstallCommand());
示例2: AppCommand
<?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 AppCommand());
示例3: AnswerDB
<?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 AnswerDB());
Artisan::add(new QuestionTypeDB());
Artisan::add(new QuestionDB());
Artisan::add(new QuestionAnswerDB());
Artisan::add(new LocationDB());
Artisan::add(new TourDB());
Artisan::add(new FactorDB());
Artisan::add(new InteractionDB());
Artisan::add(new TourScoreDB());
Artisan::add(new DBTransaction());
Artisan::add(new AnswerMap());
示例4: AppCommand
<?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 AppCommand());
Artisan::add(new CronJobCommand());
Artisan::add(new AnnuallyCommand());
Artisan::add(new QuarterlyCommand());
Artisan::add(new SemiAnnuallyCommand());
示例5: AppReset
<?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 AppReset());
Artisan::add(new GenerateViews());
示例6: 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');
示例7: ViewsCommand
<?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 ViewsCommand());
示例8: ApplicationSetup
<?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 ApplicationSetup());
Artisan::add(new GenerateModelData());
Artisan::add(new Settings());
Artisan::add(new ImportTranslationsCommand());
示例9: JunsCommand
<?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 JunsCommand());
示例10:
<?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 \Larapress\Commands\InstallCommand());
示例11: FetchDeposits
<?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 FetchDeposits());
Artisan::add(new VerifyPayouts());
示例12: UserCreatorCommand
<?php
Artisan::add(new UserCreatorCommand());
Artisan::add(new AboutClassCommand());
示例13: Products
<?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 Products(App::make('Moa\\API\\Provider\\ProviderInterface')));
示例14: MigrateApplicationCommand
<?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 MigrateApplicationCommand());
Artisan::add(new AssetsPublishCommand());
// Some people still don't have dummy package installed,
// Load it only if it already within service-provider lists
if (App::offsetExists('dummy.creator')) {
Artisan::add(new WorkbenchDummyCommand(app('dummy.creator')));
}
示例15: UploadWorker
<?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 UploadWorker());
Artisan::add(new RunWorker());