Skip to content

Commit 0816a07

Browse files
committed
[Console] Change Command namespaces
1 parent e40733d commit 0816a07

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

components/console/changing_default_command.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ will always run the ``ListCommand`` when no command name is passed. In order to
1212
the default command you just need to pass the command name you want to run by
1313
default to the ``setDefaultCommand`` method::
1414

15-
namespace Acme\Command;
15+
namespace Acme\Console\Command;
1616

1717
use Symfony\Component\Console\Command\Command;
1818
use Symfony\Component\Console\Input\InputInterface;
@@ -36,7 +36,7 @@ Executing the application and changing the default Command::
3636

3737
// application.php
3838

39-
use Acme\Command\HelloWorldCommand;
39+
use Acme\Console\Command\HelloWorldCommand;
4040
use Symfony\Component\Console\Application;
4141

4242
$command = new HelloWorldCommand();

components/console/introduction.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Creating a basic Command
3535
To make a console command that greets you from the command line, create ``GreetCommand.php``
3636
and add the following to it::
3737

38-
namespace Acme\Command;
38+
namespace Acme\Console\Command;
3939

4040
use Symfony\Component\Console\Command\Command;
4141
use Symfony\Component\Console\Input\InputArgument;
@@ -88,7 +88,7 @@ an ``Application`` and adds commands to it::
8888
<?php
8989
// application.php
9090

91-
use Acme\Command\GreetCommand;
91+
use Acme\Console\Command\GreetCommand;
9292
use Symfony\Component\Console\Application;
9393

9494
$application = new Application();
@@ -415,7 +415,7 @@ useful one is the :class:`Symfony\\Component\\Console\\Tester\\CommandTester`
415415
class. It uses special input and output classes to ease testing without a real
416416
console::
417417

418-
use Acme\Command\GreetCommand;
418+
use Acme\Console\Command\GreetCommand;
419419
use Symfony\Component\Console\Application;
420420
use Symfony\Component\Console\Tester\CommandTester;
421421

@@ -444,7 +444,7 @@ You can test sending arguments and options to the command by passing them
444444
as an array to the :method:`Symfony\\Component\\Console\\Tester\\CommandTester::execute`
445445
method::
446446

447-
use Acme\Command\GreetCommand;
447+
use Acme\Console\Command\GreetCommand;
448448
use Symfony\Component\Console\Application;
449449
use Symfony\Component\Console\Tester\CommandTester;
450450

0 commit comments

Comments
 (0)