Skip to content

Commit 27258d1

Browse files
committed
Add info about order in which commands are added to the console
1 parent c146951 commit 27258d1

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

guide/index.rst

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -528,34 +528,36 @@ Console Config Options
528528
[
529529
'console' => [
530530
'default' => [
531-
'directories' => null,
532531
'find_in_namespaces' => false,
532+
'directories' => null,
533533
'commands' => null,
534534
'language_instance' => 'default',
535535
'locator_instance' => 'default',
536536
],
537537
],
538538
]
539539
540+
find_in_namespaces
541+
""""""""""""""""""
542+
543+
Set ``true`` to find commands in all Commands subdirectories of all namespaces.
544+
The default is not to find in namespaces.
545+
540546
directories
541547
"""""""""""
542548

543549
Sets an array of directories where commands will be looked for. By default there
544550
is no directory.
545551

546-
find_in_namespaces
547-
""""""""""""""""""
548-
549-
Set ``true`` to find commands in all Commands subdirectories of all namespaces.
550-
The default is not to find in namespaces.
552+
These commands are added after finding in namespaces.
551553

552554
commands
553555
""""""""
554556

555557
Sets an array of Fully Qualified Class Names or instances of the
556-
Framework\CLICommand class. By default, no additional classes are set.
558+
Framework\CLI\Command class. By default, no additional classes are set.
557559

558-
These commands are added after searching through namespaces and directories.
560+
These commands are added after finding through namespaces and directories.
559561

560562
language_instance
561563
"""""""""""""""""

tests/configs/console.config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
*/
1010
return [
1111
'default' => [
12+
'find_in_namespaces' => true,
1213
'directories' => [
1314
__DIR__,
1415
'/unknown',
1516
],
16-
'find_in_namespaces' => true,
1717
'commands' => [
1818
Tests\MVC\Commands\Hello::class,
1919
],

0 commit comments

Comments
 (0)