Skip to content

Commit 5d04792

Browse files
committed
Change the CLI command namespace
1 parent b0db9cf commit 5d04792

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

resources/magento2/common.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ common.cli.create.new.cli.command.title=Create a new Magento 2 CLI Command
4444
common.cli.generate.error=New CLI Command Generation Error
4545
common.cli.class.title=CLI Command Class
4646
common.validationErrorTitle=Validation Error
47-
common.defaultConsoleDirectory=Console
47+
common.defaultConsoleDirectory=Console/Command
4848
common.cronGroup.description.scheduleGenerateEvery=Frequency (in minutes) that schedules are written to the cron_schedule table.
4949
common.cronGroup.description.scheduleAheadFor=Time (in minutes) in advance that schedules are written to the cron_schedule table.
5050
common.cronGroup.description.scheduleLifetime=Window of time (in minutes) that cron job must start or will be considered missed ("too late" to run).

testData/actions/generation/generator/CLICommandClassGenerator/generateCLICommandClass/TestCLICommandPHPClass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Foo\Bar\Console;
3+
namespace Foo\Bar\Console\Command;
44

55
use Symfony\Component\Console\Command\Command;
66
use Symfony\Component\Console\Input\InputInterface;

testData/actions/generation/generator/CLICommandDiXmlGenerator/addingTwoCLICommandToDiXml/di.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<type name="Magento\Framework\Console\CommandListInterface">
55
<arguments>
66
<argument name="commands" xsi:type="array">
7-
<item name="foo_bar_test_command" xsi:type="object">Foo\Bar\Console\TestCommand</item>
8-
<item name="foo_bar_one_more_c_l_i_command" xsi:type="object">Foo\Bar\Console\OneMoreCLICommand</item>
7+
<item name="foo_bar_test_command" xsi:type="object">Foo\Bar\Console\Command\TestCommand</item>
8+
<item name="foo_bar_one_more_c_l_i_command" xsi:type="object">Foo\Bar\Console\Command\OneMoreCLICommand</item>
99
</argument>
1010
</arguments>
1111
</type>

testData/actions/generation/generator/CLICommandDiXmlGenerator/initializeCLICommand/di.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<type name="Magento\Framework\Console\CommandListInterface">
55
<arguments>
66
<argument name="commands" xsi:type="array">
7-
<item name="foo_bar_test_command" xsi:type="object">Foo\Bar\Console\TestCommand</item>
7+
<item name="foo_bar_test_command" xsi:type="object">Foo\Bar\Console\Command\TestCommand</item>
88
</argument>
99
</arguments>
1010
</type>

0 commit comments

Comments
 (0)