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