8000 [9.x] Lazy load Laravel commands by paras-malhotra · Pull Request #34925 · laravel/framework · GitHub
[go: up one dir, main page]

Skip to content

[9.x] Lazy load Laravel commands #34925

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 22, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
[9.x] Lazy load commands shipped with Laravel
  • Loading branch information
paras-malhotra committed Oct 21, 2020
commit eecb03a4c032b4f2be36a12226a15d356aafe1d4
9 changes: 9 additions & 0 deletions src/Illuminate/Auth/Console/ClearResetsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ class ClearResetsCommand extends Command
*/
protected $signature = 'auth:clear-resets {name? : The name of the password broker}';

/**
* The name of the console command.
*
* This name is used to identify the command during lazy loading.
*
* @var string|null
*/
protected static $defaultName = 'auth:clear-resets';

/**
* The console command description.
*
Expand Down
9 changes: 9 additions & 0 deletions src/Illuminate/Cache/Console/CacheTableCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ class CacheTableCommand extends Command
*/
protected $name = 'cache:table';

/**
* The name of the console command.
*
* This name is used to identify the command during lazy loading.
*
* @var string|null
*/
protected static $defaultName = 'cache:table';

/**
* The console command description.
*
Expand Down
9 changes: 9 additions & 0 deletions src/Illuminate/Cache/Console/ClearCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ class ClearCommand extends Command
*/
protected $name = 'cache:clear';

/**
* The name of the console command.
*
* This name is used to identify the command during lazy loading.
*
* @var string|null
*/
protected static $defaultName = 'cache:clear';

/**
* The console command description.
*
Expand Down
9 changes: 9 additions & 0 deletions src/Illuminate/Cache/Console/ForgetCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@ class ForgetCommand extends Command
*/
protected $signature = 'cache:forget {key : The key to remove} {store? : The store to remove the key from}';

/**
* The name of the console command.
*
* This name is used to identify the command during lazy loading.
*
* @var string|null
*/
protected static $defaultName = 'cache:forget';

/**
* The console command description.
*
Expand Down
9 changes: 9 additions & 0 deletions src/Illuminate/Console/Scheduling/ScheduleFinishCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ class ScheduleFinishCommand extends Command
*/
protected $signature = 'schedule:finish {id} {code=0}';

/**
* The name of the console command.
*
* This name is used to identify the command during lazy loading.
*
* @var string|null
*/
protected static $defaultName = 'schedule:finish';

/**
* The console command description.
*
Expand Down
9 changes: 9 additions & 0 deletions src/Illuminate/Console/Scheduling/ScheduleRunCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ class ScheduleRunCommand extends Command
*/
protected $name = 'schedule:run';

/**
* The name of the console command.
*
* This name is used to identify the command during lazy loading.
*
* @var string|null
*/
protected static $defaultName = 'schedule:run';

/**
* The console command description.
*
Expand Down
9 changes: 9 additions & 0 deletions src/Illuminate/Console/Scheduling/ScheduleWorkCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ class ScheduleWorkCommand extends Command
*/
protected $name = 'schedule:work';

/**
* The name of the console command.
*
* This name is used to identify the command during lazy loading.
*
* @var string|null
*/
protected static $defaultName = 'schedule:work';

/**
* The console command description.
*
Expand Down
9 changes: 9 additions & 0 deletions src/Illuminate/Database/Console/DumpCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ class DumpCommand extends Command
{--path= : The path where the schema dump file should be stored}
{--prune : Delete all existing migration files}';

/**
* The name of the console command.
*
* This name is used to identify the command during lazy loading.
*
* @var string|null
*/
protected static $defaultName = 'schema:dump';

/**
* The console command description.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ class FactoryMakeCommand extends GeneratorCommand
*/
protected $name = 'make:factory';

/**
* The name of the console command.
*
* This name is used to identify the command during lazy loading.
*
* @var string|null
*/
protected static $defaultName = 'make:factory';

/**
* The console command description.
*
Expand Down
9 changes: 9 additions & 0 deletions src/Illuminate/Database/Console/Seeds/SeedCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ class SeedCommand extends Command
*/
protected $name = 'db:seed';

/**
* The name of the console command.
*
* This name is used to identify the command during lazy loading.
*
* @var string|null
*/
protected static $defaultName = 'db:seed';

/**
* The console command description.
*
Expand Down
9 changes: 9 additions & 0 deletions src/Illuminate/Database/Console/Seeds/SeederMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ class SeederMakeCommand extends GeneratorCommand
*/
protected $name = 'make:seeder';

/**
* The name of the console command.
*
* This name is used to identify the command during lazy loading.
*
* @var string|null
*/
protected static $defaultName = 'make:seeder';

/**
* The console command description.
*
Expand Down
9 changes: 9 additions & 0 deletions src/Illuminate/Database/Console/WipeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ class WipeCommand extends Command
*/
protected $name = 'db:wipe';

/**
* The name of the console command.
*
* This name is used to identify the command during lazy loading.
*
* @var string|null
*/
protected static $defaultName = 'db:wipe';

/**
* The console command description.
*
Expand Down
9 changes: 9 additions & 0 deletions src/Illuminate/Foundation/Console/CastMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ class CastMakeCommand extends GeneratorCommand
*/
protected $name = 'make:cast';

/**
* The name of the console command.
*
* This name is used to identify the command during lazy loading.
*
* @var string|null
*/
protected static $defaultName = 'make:cast';

/**
* The console command description.
*
Expand Down
9 changes: 9 additions & 0 deletions src/Illuminate/Foundation/Console/ChannelMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ class ChannelMakeCommand extends GeneratorCommand
*/
protected $name = 'make:channel';

/**
* The name of the console command.
*
* This name is used to identify the command during lazy loading.
*
* @var string|null
*/
protected static $defaultName = 'make:channel';

/**
* The console command description.
*
Expand Down
9 changes: 9 additions & 0 deletions src/Illuminate/Foundation/Console/ClearCompiledCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ class ClearCompiledCommand extends Command
*/
protected $name = 'clear-compiled';

/**
* The name of the console command.
*
* This name is used to identify the command during lazy loading.
*
* @var string|null
*/
protected static $defaultName = 'clear-compiled';

/**
* The console command description.
*
Expand Down
9 changes: 9 additions & 0 deletions src/Illuminate/Foundation/Console/ComponentMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ class ComponentMakeCommand extends GeneratorCommand
*/
protected $name = 'make:component';

/**
* The name of the console command.
*
* This name is used to identify the command during lazy loading.
*
* @var string|null
*/
protected static $defaultName = 'make:component';

/**
* The console command description.
*
Expand Down
9 changes: 9 additions & 0 deletions src/Illuminate/Foundation/Console/ConfigCacheCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ class ConfigCacheCommand extends Command
*/
protected $name = 'config:cache';

/**
* The name of the console command.
*
* This name is used to identify the command during lazy loading.
*
* @var string|null
*/
protected static $defaultName = 'config:cache';

/**
* The console command description.
*
Expand Down
9 changes: 9 additions & 0 deletions src/Illuminate/Foundation/Console/ConfigClearCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@ class ConfigClearCommand extends Command
*/
protected $name = 'config:clear';

/**
* The name of the console command.
*
* This name is used to identify the command during lazy loading.
*
* @var string|null
*/
protected static $defaultName = 'config:clear';

/**
* The console command description.
*
Expand Down
9 changes: 9 additions & 0 deletions src/Illuminate/Foundation/Console/ConsoleMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ class ConsoleMakeCommand extends GeneratorCommand
*/
protected $name = 'make:command';

/**
* The name of the console command.
*
* This name is used to identify the command during lazy loading.
*
* @var string|null
*/
protected static $defaultName = 'make:command';

/**
* The console command description.
*
Expand Down
9 changes: 9 additions & 0 deletions src/Illuminate/Foundation/Console/DownCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ class DownCommand extends Command
{--secret= : The secret phrase that may be used to bypass maintenance mode}
{--status=503 : The status code that should be used when returning the maintenance mode response}';

/**
* The name of the console command.
*
* This name is used to identify the command during lazy loading.
*
* @var string|null
*/
protected static $defaultName = 'down';

/**
* The console command description.
*
Expand Down
9 changes: 9 additions & 0 deletions src/Illuminate/Foundation/Console/EnvironmentCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ class EnvironmentCommand extends Command
*/
protected $name = 'env';

/**
* The name of the console command.
*
* This name is used to identify the command during lazy loading.
*
* @var string|null
*/
protected static $defaultName = 'env';

/**
* The console command description.
*
Expand Down
9 changes: 9 additions & 0 deletions src/Illuminate/Foundation/Console/EventCacheCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@ class EventCacheCommand extends Command
*/
protected $signature = 'event:cache';

/**
* The name of the console command.
*
* This name is used to identify the command during lazy loading.
*
* @var string|null
*/
protected static $defaultName = 'event:cache';

/**
* The console command description.
*
Expand Down
9 changes: 9 additions & 0 deletions src/Illuminate/Foundation/Console/EventClearCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@ class EventClearCommand extends Command
*/
protected $name = 'event:clear';

/**
* The name of the console command.
*
* This name is used to identify the command during lazy loading.
*
* @var string|null
*/
protected static $defaultName = 'event:clear';

/**
* The console command description.
*
Expand Down
9 changes: 9 additions & 0 deletions src/Illuminate/Foundation/Console/EventGenerateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ class EventGenerateCommand extends Command
*/
protected $name = 'event:generate';

/**
* The name of the console command.
*
* This name is used to identify the command during lazy loading.
*
* @var string|null
*/
protected static $defaultName = 'event:generate';

/**
* The console command description.
*
Expand Down
9 changes: 9 additions & 0 deletions src/Illuminate/Foundation/Console/EventListCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ class EventListCommand extends Command
*/
protected $signature = 'event:list {--event= : Filter the events by name}';

/**
* The name of the console command.
*
* This name is used to identify the command during lazy loading.
*
* @var string|null
*/
protected static $defaultName = 'event:list';

/**
* The console command description.
*
Expand Down
Loading
0