Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5d99d88

Browse filesBrowse files
committed
[#3697] Backporting 2.3-specific changes
1 parent 41b2eb8 commit 5d99d88
Copy full SHA for 5d99d88

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed

‎components/console/introduction.rst

Copy file name to clipboardExpand all lines: components/console/introduction.rst
+4-4Lines changed: 4 additions & 4 deletions
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();
@@ -380,7 +380,7 @@ useful one is the :class:`Symfony\\Component\\Console\\Tester\\CommandTester`
380380
class. It uses special input and output classes to ease testing without a real
381381
console::
382382

383-
use Acme\Command\GreetCommand;
383+
use Acme\Console\Command\GreetCommand;
384384
use Symfony\Component\Console\Application;
385385
use Symfony\Component\Console\Tester\CommandTester;
386386

@@ -409,7 +409,7 @@ You can test sending arguments and options to the command by passing them
409409
as an array to the :method:`Symfony\\Component\\Console\\Tester\\CommandTester::execute`
410410
method::
411411

412-
use Acme\Command\GreetCommand;
412+
use Acme\Console\Command\GreetCommand;
413413
use Symfony\Component\Console\Application;
414414
use Symfony\Component\Console\Tester\CommandTester;
415415

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.