10000 [9.x] Lazy load Laravel commands (#34925) · laravel/framework@82b212c · GitHub
[go: up one dir, main page]

Skip to content

Commit 82b212c

Browse files
[9.x] Lazy load Laravel commands (#34925)
* [9.x] Lazy load commands shipped with Laravel * Lazy load migration commands
1 parent d70fd4f commit 82b212c

File tree

71 files changed

+769
-200
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+769
-200
lines changed

src/Illuminate/Auth/Console/ClearResetsCommand.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,15 @@ class ClearResetsCommand extends Command
1313
*/
1414
protected $signature = 'auth:clear-resets {name? : The name of the password broker}';
1515

16+
/**
17+
* The name of the console command.
18+
*
19+
* This name is used to identify the command during lazy loading.
20+
*
21+
* @var string|null
22+
*/
23+
protected static $defaultName = 'auth:clear-resets';
24+
1625
/**
1726
* The console command description.
1827
*

src/Illuminate/Cache/Console/CacheTableCommand.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@ class CacheTableCommand extends Command
1515
*/
1616
protected $name = 'cache:table';
1717

18+
/**
19+
* The name of the console command.
20+
*
21+
* This name is used to identify the command during lazy loading.
22+
*
23+
* @var string|null
24+
*/
25+
protected static $defaultName = 'cache:table';
26+
1827
/**
1928
* The console command description.
2029
*

src/Illuminate/Cache/Console/ClearCommand.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@ class ClearCommand extends Command
1717
*/
1818
protected $name = 'cache:clear';
1919

20+
/**
21+
* The name of the console command.
22+
*
23+
* This name is used to identify the command during lazy loading.
24+
*
25+
* @var string|null
26+
*/
27+
protected static $defaultName = 'cache:clear';
28+
2029
/**
2130
* The console command description.
2231
*

src/Illuminate/Cache/Console/ForgetCommand.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@ class ForgetCommand extends Command
1414
*/
1515
protected $signature = 'cache:forget {key : The key to remove} {store? : The store to remove the key from}';
1616

17+
/**
18+
* The name of the console command.
19+
*
20+
* This name is used to identify the command during lazy loading.
21+
*
22+
* @var string|null
23+
*/
24+
protected static $defaultName = 'cache:forget';
25+
1726
/**
1827
* The console command description.
1928
*

src/Illuminate/Console/Scheduling/ScheduleFinishCommand.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,15 @@ class ScheduleFinishCommand extends Command
1313
*/
1414
protected $signature = 'schedule:finish {id} {code=0}';
1515

16+
/**
17+
* The name of the console command.
18+
*
19+
* This name is used to identify the command during lazy loading.
20+
*
21+
* @var string|null
22+
*/
23+
protected static $defaultName = 'schedule:finish';
24+
1625
/**
1726
* The console command description.
1827
*

src/Illuminate/Console/Scheduling/ScheduleRunCommand.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@ class ScheduleRunCommand extends Command
2121
*/
2222
protected $name = 'schedule:run';
2323

24+
/**
25+
* The name of the console command.
26+
*
27+
* This name is used to identify the command during lazy loading.
28+
*
29+
* @var string|null
30+
*/
31+
protected static $defaultName = 'schedule:run';
32+
2433
/**
2534
* The console command description.
2635
*

src/Illuminate/Console/Scheduling/ScheduleWorkCommand.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@ class ScheduleWorkCommand extends Command
1515
*/
1616
protected $name = 'schedule:work';
1717

18+
/**
19+
* The name of the console command.
20+
*
21+
* This name is used to identify the command during lazy loading.
22+
*
23+
* @var string|null
24+
*/
25+
protected static $defaultName = 'schedule:work';
26+
1827
/**
1928
* The console command description.
2029
*

src/Illuminate/Database/Console/DumpCommand.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@ class DumpCommand extends Command
2121
{--path= : The path where the schema dump file should be stored}
2222
{--prune : Delete all existing migration files}';
2323

24+
/**
25+
* The name of the console command.
26+
*
27+
* This name is used to identify the command during lazy loading.
28+
*
29+
* @var string|null
30+
*/
31+
protected static $defaultName = 'schema:dump';
32+
2433
/**
2534
* The console command description.
2635
*

src/Illuminate/Database/Console/Factories/FactoryMakeCommand.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@ class FactoryMakeCommand extends GeneratorCommand
1515
*/
1616
protected $name = 'make:factory';
1717

18+
/**
19+
* The name of the console command.
20+
*
21+
* This name is used to identify the command during lazy loading.
22+
*
23+
* @var string|null
24+
*/
25+
protected static $defaultName = 'make:factory';
26+
1827
/**
1928
* The console command description.
2029
*

src/Illuminate/Database/Console/Seeds/SeedCommand.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@ class SeedCommand extends Command
1919
*/
2020
protected $name = 'db:seed';
2121

22+
/**
23+
* The name of the console command.
24+
*
25+
* This name is used to identify the command during lazy loading.
26+
*
27+
* @var string|null
28+
*/
29+
protected static $defaultName = 'db:seed';
30+
2231
/**
2332
* The console command description.
2433
*

0 commit comments

Comments
 (0)
0