Skip to content

Commit 8794a4d

Browse files
committed
app/console -> bin/console
1 parent af97ce1 commit 8794a4d

11 files changed

+40
-40
lines changed

book/bundles.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ generating a basic bundle skeleton:
122122

123123
.. code-block:: bash
124124
125-
$ php app/console generate:bundle --namespace=Acme/TestBundle
125+
$ php bin/console generate:bundle --namespace=Acme/TestBundle
126126
127127
The bundle skeleton generates a basic controller, template and routing
128128
resource that can be customized. You'll learn more about Symfony's command-line

book/configuration.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,13 @@ FrameworkBundle configuration:
122122

123123
.. code-block:: bash
124124
125-
$ app/console config:dump-reference FrameworkBundle
125+
$ bin/console config:dump-reference FrameworkBundle
126126
127127
The extension alias (configuration key) can also be used:
128128

129129
.. code-block:: bash
130130
131-
$ app/console config:dump-reference framework
131+
$ bin/console config:dump-reference framework
132132
133133
.. note::
134134

@@ -177,7 +177,7 @@ cached files and allow them to rebuild:
177177

178178
.. code-block:: bash
179179
180-
$ php app/console cache:clear --env=prod --no-debug
180+
$ php bin/console cache:clear --env=prod --no-debug
181181
182182
.. note::
183183

book/controller.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ console command:
532532

533533
.. code-block:: bash
534534
535-
$ php app/console debug:container
535+
$ php bin/console debug:container
536536
537537
.. versionadded:: 2.6
538538
Prior to Symfony 2.6, this command was called ``container:debug``.

book/doctrine.rst

+12-12
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ for you:
116116

117117
.. code-block:: bash
118118
119-
$ php app/console doctrine:database:create
119+
$ php bin/console doctrine:database:create
120120
121121
.. sidebar:: Setting up the Database to be UTF8
122122

@@ -128,8 +128,8 @@ for you:
128128

129129
.. code-block:: bash
130130
131-
$ php app/console doctrine:database:drop --force
132-
$ php app/console doctrine:database:create
131+
$ php bin/console doctrine:database:drop --force
132+
$ php bin/console doctrine:database:create
133133
134134
There's no way to configure these defaults inside Doctrine, as it tries to be
135135
as agnostic as possible in terms of environment configuration. One way to solve
@@ -227,7 +227,7 @@ just a simple PHP class.
227227

228228
.. code-block:: bash
229229
230-
$ php app/console doctrine:generate:entity
230+
$ php bin/console doctrine:generate:entity
231231
232232
.. index::
233233
single: Doctrine; Adding mapping metadata
@@ -392,7 +392,7 @@ a regular PHP class, you need to create getter and setter methods (e.g. ``getNam
392392

393393
.. code-block:: bash
394394
395-
$ php app/console doctrine:generate:entities AppBundle/Entity/Product
395+
$ php bin/console doctrine:generate:entities AppBundle/Entity/Product
396396
397397
This command makes sure that all the getters and setters are generated
398398
for the ``Product`` class. This is a safe command - you can run it over and
@@ -434,10 +434,10 @@ mapping information) of a bundle or an entire namespace:
434434
.. code-block:: bash
435435
436436
# generates all entities in the AppBundle
437-
$ php app/console doctrine:generate:entities AppBundle
437+
$ php bin/console doctrine:generate:entities AppBundle
438438
439439
# generates all entities of bundles in the Acme namespace
440-
$ php app/console doctrine:generate:entities Acme
440+
$ php bin/console doctrine:generate:entities Acme
441441
442442
.. note::
443443

@@ -459,7 +459,7 @@ in your application. To do this, run:
459459

460460
.. code-block:: bash
461461
462-
$ php app/console doctrine:schema:update --force
462+
$ php bin/console doctrine:schema:update --force
463463
464464
.. tip::
465465

@@ -852,7 +852,7 @@ used earlier to generate the missing getter and setter methods:
852852

853853
.. code-block:: bash
854854
855-
$ php app/console doctrine:generate:entities AppBundle
855+
$ php bin/console doctrine:generate:entities AppBundle
856856
857857
Next, add a new method - ``findAllOrderedByName()`` - to the newly generated
858858
repository class. This method will query for all the ``Product`` entities,
@@ -906,7 +906,7 @@ you can let Doctrine create the class for you.
906906

907907
.. code-block:: bash
908908
909-
$ php app/console doctrine:generate:entity --no-interaction \
909+
$ php bin/console doctrine:generate:entity --no-interaction \
910910
--entity="AppBundle:Category" \
911911
--fields="name:string(255)"
912912
@@ -1063,7 +1063,7 @@ methods for you:
10631063

10641064
.. code-block:: bash
10651065
1066-
$ php app/console doctrine:generate:entities AppBundle
1066+
$ php bin/console doctrine:generate:entities AppBundle
10671067
10681068
Ignore the Doctrine metadata for a moment. You now have two classes - ``Category``
10691069
and ``Product`` with a natural one-to-many relationship. The ``Category``
@@ -1092,7 +1092,7 @@ table, and ``product.category_id`` column, and new foreign key:
10921092

10931093
.. code-block:: bash
10941094
1095-
$ php app/console doctrine:schema:update --force
1095+
$ php bin/console doctrine:schema:update --force
10961096
10971097
.. note::
10981098

book/installation.rst

+5-5
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ browsing the project directory and executing this command:
164164
.. code-block:: bash
165165
166166
$ cd my_project_name/
167-
$ php app/console server:run
167+
$ php bin/console server:run
168168
169169
Then, open your browser and access the ``http://localhost:8000/`` URL to see the
170170
Welcome Page of Symfony:
@@ -195,7 +195,7 @@ server with the ``server:stop`` command:
195195

196196
.. code-block:: bash
197197
198-
$ php app/console server:stop
198+
$ php bin/console server:stop
199199
200200
Checking Symfony Application Configuration and Setup
201201
----------------------------------------------------
@@ -265,7 +265,7 @@ If there are any issues, correct them now before moving on.
265265
If none of the previous methods work for you, change the umask so that the
266266
cache and log directories will be group-writable or world-writable (depending
267267
if the web server user and the command line user are in the same group or not).
268-
To achieve this, put the following line at the beginning of the ``app/console``,
268+
To achieve this, put the following line at the beginning of the ``bin/console``,
269269
``web/app.php`` and ``web/app_dev.php`` files::
270270

271271
umask(0002); // This will let the permissions be 0775
@@ -306,7 +306,7 @@ several minutes to complete.
306306

307307
.. code-block:: bash
308308
309-
$ php app/console security:check
309+
$ php bin/console security:check
310310
311311
A good security practice is to execute this command regularly to be able to
312312
update or replace compromised dependencies as soon as possible.
@@ -331,7 +331,7 @@ of the Symfony Installer anywhere in your system:
331331
c:\projects\> php symfony demo
332332
333333
Once downloaded, enter into the ``symfony_demo/`` directory and run the PHP's
334-
built-in web server executing the ``php app/console server:run`` command. Access
334+
built-in web server executing the ``php bin/console server:run`` command. Access
335335
to the ``http://localhost:8000`` URL in your browser to start using the Symfony
336336
Demo application.
337337

book/page_creation.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -544,11 +544,11 @@ by changing one option in this configuration file. To find out how, see the
544544
:doc:`Configuration Reference </reference/index>` section.
545545

546546
Or, to get a big example dump of all of the valid configuration under a key,
547-
use the handy ``app/console`` command:
547+
use the handy ``bin/console`` command:
548548

549549
.. code-block:: bash
550550
551-
$ app/console config:dump-reference framework
551+
$ bin/console config:dump-reference framework
552552
553553
There's a lot more power behind Symfony's configuration system, including
554554
environments, imports and parameters. To learn all of it, see the

book/routing.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -1393,7 +1393,7 @@ the command by running the following from the root of your project.
13931393

13941394
.. code-block:: bash
13951395
1396-
$ php app/console debug:router
1396+
$ php bin/console debug:router
13971397
13981398
.. versionadded:: 2.6
13991399
Prior to Symfony 2.6, this command was called ``router:debug``.
@@ -1415,14 +1415,14 @@ the route name after the command:
14151415

14161416
.. code-block:: bash
14171417
1418-
$ php app/console debug:router article_show
1418+
$ php bin/console debug:router article_show
14191419
14201420
Likewise, if you want to test whether a URL matches a given route, you can
14211421
use the ``router:match`` console command:
14221422

14231423
.. code-block:: bash
14241424
1425-
$ php app/console router:match /blog/my-latest-post
1425+
$ php bin/console router:match /blog/my-latest-post
14261426
14271427
This command will print which route the URL matches.
14281428

book/security.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1363,7 +1363,7 @@ security vulnerability in your installed dependencies:
13631363

13641364
.. code-block:: bash
13651365
1366-
$ php app/console security:check
1366+
$ php bin/console security:check
13671367
13681368
A good security practice is to execute this command regularly to be able to
13691369
update or replace compromised dependencies as soon as possible. Internally,

book/service_container.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -1147,7 +1147,7 @@ console. To show all services and the class for each service, run:
11471147

11481148
.. code-block:: bash
11491149
1150-
$ php app/console debug:container
1150+
$ php bin/console debug:container
11511151
11521152
.. versionadded:: 2.6
11531153
Prior to Symfony 2.6, this command was called ``container:debug``.
@@ -1156,7 +1156,7 @@ By default, only public services are shown, but you can also view private servic
11561156

11571157
.. code-block:: bash
11581158
1159-
$ php app/console debug:container --show-private
1159+
$ php bin/console debug:container --show-private
11601160
11611161
.. note::
11621162

@@ -1170,7 +1170,7 @@ its id:
11701170

11711171
.. code-block:: bash
11721172
1173-
$ php app/console debug:container my_mailer
1173+
$ php bin/console debug:container my_mailer
11741174
11751175
Learn more
11761176
----------

book/templating.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -1211,7 +1211,7 @@ should use the ``parent()`` Twig function to include everything from the ``style
12111211
block of the base template.
12121212

12131213
You can also include assets located in your bundles' ``Resources/public`` folder.
1214-
You will need to run the ``php app/console assets:install target [--symlink]``
1214+
You will need to run the ``php bin/console assets:install target [--symlink]``
12151215
command, which moves (or symlinks) files into the correct location. (target
12161216
is by default "web").
12171217

@@ -1391,7 +1391,7 @@ to create it). You're now free to customize the template.
13911391
.. caution::
13921392

13931393
If you add a template in a new location, you *may* need to clear your
1394-
cache (``php app/console cache:clear``), even if you are in debug mode.
1394+
cache (``php bin/console cache:clear``), even if you are in debug mode.
13951395

13961396
This logic also applies to base bundle templates. Suppose also that each
13971397
template in AcmeBlogBundle inherits from a base template called
@@ -1641,10 +1641,10 @@ console command:
16411641
.. code-block:: bash
16421642
16431643
# You can check by filename:
1644-
$ php app/console lint:twig app/Resources/views/article/recent_list.html.twig
1644+
$ php bin/console lint:twig app/Resources/views/article/recent_list.html.twig
16451645
16461646
# or by directory:
1647-
$ php app/console lint:twig app/Resources/views
1647+
$ php bin/console lint:twig app/Resources/views
16481648
16491649
.. _template-formats:
16501650

book/translation.rst

+5-5
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ For more options, see :ref:`component-translator-message-catalogs`.
387387

388388
.. code-block:: bash
389389
390-
$ php app/console cache:clear
390+
$ php bin/console cache:clear
391391
392392
.. _book-translation-fallback:
393393

@@ -815,7 +815,7 @@ To inspect all messages in the ``fr`` locale for the AcmeDemoBundle, run:
815815

816816
.. code-block:: bash
817817
818-
$ php app/console debug:translation fr AcmeDemoBundle
818+
$ php bin/console debug:translation fr AcmeDemoBundle
819819
820820
You will get this output:
821821

@@ -856,15 +856,15 @@ By default all domains are inspected, but it is possible to specify a single dom
856856

857857
.. code-block:: bash
858858
859-
$ php app/console debug:translation en AcmeDemoBundle --domain=messages
859+
$ php bin/console debug:translation en AcmeDemoBundle --domain=messages
860860
861861
When bundles have a lot of messages, it is useful to display only the unused
862862
or only the missing messages, by using the ``--only-unused`` or ``--only-missing`` switches:
863863

864864
.. code-block:: bash
865865
866-
$ php app/console debug:translation en AcmeDemoBundle --only-unused
867-
$ php app/console debug:translation en AcmeDemoBundle --only-missing
866+
$ php bin/console debug:translation en AcmeDemoBundle --only-unused
867+
$ php bin/console debug:translation en AcmeDemoBundle --only-missing
868868
869869
Summary
870870
-------

0 commit comments

Comments
 (0)