Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit15a9d25

Browse files
committed
minor#3697 [Console] Change Command namespaces (dunglas)
This PR was merged into the master branch.Discussion----------[Console] Change Command namespaces| Q | A| ------------- | ---| Doc fix? | yes| New docs? | no| Applies to | 2.5See#3696 (comment)Commits-------0816a07 [Console] Change Command namespaces
2 parentse40733d +0816a07 commit15a9d25

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

‎components/console/changing_default_command.rst

Lines changed: 2 additions & 2 deletions
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

Lines 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();
@@ -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)

[8]ページ先頭

©2009-2025 Movatter.jp