Skip to content

Commit bea4a0c

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

22 files changed

+55
-55
lines changed

cookbook/assetic/asset_management.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ each time you deploy), you should run the following command:
500500

501501
.. code-block:: bash
502502
503-
$ php app/console assetic:dump --env=prod --no-debug
503+
$ php bin/console assetic:dump --env=prod --no-debug
504504
505505
This will physically generate and write each file that you need (e.g. ``/js/abcd123.js``).
506506
If you update any of your assets, you'll need to run this again to regenerate
@@ -542,7 +542,7 @@ need to dump them manually. To do so, run the following command:
542542

543543
.. code-block:: bash
544544
545-
$ php app/console assetic:dump
545+
$ php bin/console assetic:dump
546546
547547
This physically writes all of the asset files you need for your ``dev``
548548
environment. The big disadvantage is that you need to run this each time
@@ -551,7 +551,7 @@ assets will be regenerated automatically *as they change*:
551551

552552
.. code-block:: bash
553553
554-
$ php app/console assetic:watch
554+
$ php bin/console assetic:watch
555555
556556
The ``assetic:watch`` command was introduced in AsseticBundle 2.4. In prior
557557
versions, you had to use the ``--watch`` option of the ``assetic:dump``

cookbook/bundles/installation.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,14 @@ via the ``config:dump-reference`` command:
108108

109109
.. code-block:: bash
110110
111-
$ app/console config:dump-reference AsseticBundle
111+
$ bin/console config:dump-reference AsseticBundle
112112
113113
Instead of the full bundle name, you can also pass the short name used as the root
114114
of the bundle's configuration:
115115

116116
.. code-block:: bash
117117
118-
$ app/console config:dump-reference assetic
118+
$ bin/console config:dump-reference assetic
119119
120120
The output will look like this:
121121

cookbook/configuration/apache_router.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Now generate the mod_rewrite rules:
9898

9999
.. code-block:: bash
100100
101-
$ php app/console router:dump-apache -e=prod --no-debug
101+
$ php bin/console router:dump-apache -e=prod --no-debug
102102
103103
Which should roughly output the following:
104104

cookbook/configuration/environments.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -221,13 +221,13 @@ behavior:
221221
.. code-block:: bash
222222
223223
# 'dev' environment and debug enabled
224-
$ php app/console command_name
224+
$ php bin/console command_name
225225
226226
# 'prod' environment (debug is always disabled for 'prod')
227-
$ php app/console command_name --env=prod
227+
$ php bin/console command_name --env=prod
228228
229229
# 'test' environment and debug disabled
230-
$ php app/console command_name --env=test --no-debug
230+
$ php bin/console command_name --env=test --no-debug
231231
232232
In addition to the ``--env`` and ``--debug`` options, the behavior of Symfony
233233
commands can also be controlled with environment variables. The Symfony console

cookbook/configuration/front_controllers_and_kernel.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ as the default one.
7575
access. For example, you don't want to make a debugging environment
7676
available to arbitrary users in your production environment.
7777

78-
Technically, the `app/console`_ script used when running Symfony on the command
78+
Technically, the `bin/console`_ script used when running Symfony on the command
7979
line is also a front controller, only that is not used for web, but for command
8080
line requests.
8181

@@ -162,7 +162,7 @@ way of loading your configuration.
162162
.. _Symfony Standard Edition: https://github.com/symfony/symfony-standard
163163
.. _app.php: https://github.com/symfony/symfony-standard/blob/master/web/app.php
164164
.. _app_dev.php: https://github.com/symfony/symfony-standard/blob/master/web/app_dev.php
165-
.. _app/console: https://github.com/symfony/symfony-standard/blob/master/app/console
165+
.. _bin/console: https://github.com/symfony/symfony-standard/blob/master/bin/console
166166
.. _AppKernel: https://github.com/symfony/symfony-standard/blob/master/app/AppKernel.php
167167
.. _decorate: https://en.wikipedia.org/wiki/Decorator_pattern
168168
.. _RewriteRule shipped with the Symfony Standard Edition: https://github.com/symfony/symfony-standard/blob/master/web/.htaccess

cookbook/configuration/override_dir_structure.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ file:
154154

155155
.. code-block:: bash
156156
157-
$ php app/console cache:clear --env=prod
158-
$ php app/console assetic:dump --env=prod --no-debug
157+
$ php bin/console cache:clear --env=prod
158+
$ php bin/console assetic:dump --env=prod --no-debug
159159
160160
Override the ``vendor`` Directory
161161
---------------------------------

cookbook/console/console_command.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ This command will now automatically be available to run:
6868

6969
.. code-block:: bash
7070
71-
$ php app/console demo:greet Fabien
71+
$ php bin/console demo:greet Fabien
7272
7373
.. _cookbook-console-dic:
7474

cookbook/console/usage.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@ clear and warm the ``prod`` cache you need to run:
1717

1818
.. code-block:: bash
1919
20-
$ php app/console cache:clear --env=prod
20+
$ php bin/console cache:clear --env=prod
2121
2222
or the equivalent:
2323

2424
.. code-block:: bash
2525
26-
$ php app/console cache:clear -e prod
26+
$ php bin/console cache:clear -e prod
2727
2828
In addition to changing the environment, you can also choose to disable debug mode.
2929
This can be useful where you want to run commands in the ``dev`` environment
3030
but avoid the performance hit of collecting debug data:
3131

3232
.. code-block:: bash
3333
34-
$ php app/console list --no-debug
34+
$ php bin/console list --no-debug

cookbook/deployment/azure-website.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ MySQL database.
388388

389389
.. code-block:: bash
390390
391-
$ php app/console doctrine:schema:update --force
391+
$ php bin/console doctrine:schema:update --force
392392
393393
This command builds the tables and indexes for your MySQL database. If your
394394
Symfony application is more complex than a basic Symfony Standard Edition, you

cookbook/deployment/heroku.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ This is also very useful to build assets on the production system, e.g. with Ass
275275
{
276276
"scripts": {
277277
"compile": [
278-
"app/console assetic:dump"
278+
"bin/console assetic:dump"
279279
]
280280
}
281281
}

cookbook/deployment/platformsh.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ Platform.sh how to deploy your application (read more about
6969
hooks:
7070
build: |
7171
rm web/app_dev.php
72-
app/console --env=prod assetic:dump --no-debug
72+
bin/console --env=prod assetic:dump --no-debug
7373
deploy: |
74-
app/console --env=prod cache:clear
74+
bin/console --env=prod cache:clear
7575
7676
For best practices, you should also add a ``.platform`` folder at the root of
7777
your Git repository which contains the following files:

cookbook/deployment/tools.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ Make sure you clear (and warm-up) your Symfony cache:
150150

151151
.. code-block:: bash
152152
153-
$ php app/console cache:clear --env=prod --no-debug
153+
$ php bin/console cache:clear --env=prod --no-debug
154154
155155
E) Dump your Assetic Assets
156156
~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -159,7 +159,7 @@ If you're using Assetic, you'll also want to dump your assets:
159159

160160
.. code-block:: bash
161161
162-
$ php app/console assetic:dump --env=prod --no-debug
162+
$ php bin/console assetic:dump --env=prod --no-debug
163163
164164
F) Other Things!
165165
~~~~~~~~~~~~~~~~

cookbook/doctrine/console.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ command:
1111

1212
.. code-block:: bash
1313
14-
$ php app/console list doctrine
14+
$ php bin/console list doctrine
1515
1616
A list of available commands will print out. You can find out more information
1717
about any of these commands (or any Symfony command) by running the ``help``
@@ -20,7 +20,7 @@ task, run:
2020

2121
.. code-block:: bash
2222
23-
$ php app/console help doctrine:database:create
23+
$ php bin/console help doctrine:database:create
2424
2525
Some notable or interesting tasks include:
2626

@@ -30,7 +30,7 @@ Some notable or interesting tasks include:
3030

3131
.. code-block:: bash
3232
33-
$ php app/console doctrine:ensure-production-settings --env=prod
33+
$ php bin/console doctrine:ensure-production-settings --env=prod
3434
3535
* ``doctrine:mapping:import`` - allows Doctrine to introspect an existing
3636
database and create mapping information. For more information, see

cookbook/doctrine/multiple_entity_managers.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -165,20 +165,20 @@ When working with multiple connections to create your databases:
165165
.. code-block:: bash
166166
167167
# Play only with "default" connection
168-
$ php app/console doctrine:database:create
168+
$ php bin/console doctrine:database:create
169169
170170
# Play only with "customer" connection
171-
$ php app/console doctrine:database:create --connection=customer
171+
$ php bin/console doctrine:database:create --connection=customer
172172
173173
When working with multiple entity managers to update your schema:
174174

175175
.. code-block:: bash
176176
177177
# Play only with "default" mappings
178-
$ php app/console doctrine:schema:update --force
178+
$ php bin/console doctrine:schema:update --force
179179
180180
# Play only with "customer" mappings
181-
$ php app/console doctrine:schema:update --force --em=customer
181+
$ php bin/console doctrine:schema:update --force --em=customer
182182
183183
If you *do* omit the entity manager's name when asking for it,
184184
the default entity manager (i.e. ``default``) is returned::

cookbook/doctrine/registration_form.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ database schema using this command:
322322

323323
.. code-block:: bash
324324
325-
$ php app/console doctrine:schema:update --force
325+
$ php bin/console doctrine:schema:update --force
326326
327327
That's it! Head to ``/register`` to try things out!
328328

cookbook/doctrine/reverse_engineering.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ table fields.
5959

6060
.. code-block:: bash
6161
62-
$ php app/console doctrine:mapping:import --force AcmeBlogBundle xml
62+
$ php bin/console doctrine:mapping:import --force AcmeBlogBundle xml
6363
6464
This command line tool asks Doctrine to introspect the database and generate
6565
the XML metadata files under the ``src/Acme/BlogBundle/Resources/config/doctrine``
@@ -92,8 +92,8 @@ entity classes by executing the following two commands.
9292

9393
.. code-block:: bash
9494
95-
$ php app/console doctrine:mapping:convert annotation ./src
96-
$ php app/console doctrine:generate:entities AcmeBlogBundle
95+
$ php bin/console doctrine:mapping:convert annotation ./src
96+
$ php bin/console doctrine:generate:entities AcmeBlogBundle
9797
9898
The first command generates entity classes with annotation mappings. But
9999
if you want to use YAML or XML mapping instead of annotations, you should

cookbook/email/spool.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -117,19 +117,19 @@ There is a console command to send the messages in the spool:
117117

118118
.. code-block:: bash
119119
120-
$ php app/console swiftmailer:spool:send --env=prod
120+
$ php bin/console swiftmailer:spool:send --env=prod
121121
122122
It has an option to limit the number of messages to be sent:
123123

124124
.. code-block:: bash
125125
126-
$ php app/console swiftmailer:spool:send --message-limit=10 --env=prod
126+
$ php bin/console swiftmailer:spool:send --message-limit=10 --env=prod
127127
128128
You can also set the time limit in seconds:
129129

130130
.. code-block:: bash
131131
132-
$ php app/console swiftmailer:spool:send --time-limit=10 --env=prod
132+
$ php bin/console swiftmailer:spool:send --time-limit=10 --env=prod
133133
134134
Of course you will not want to run this manually in reality. Instead, the
135135
console command should be triggered by a cron job or scheduled task and run

cookbook/event_dispatcher/event_listener.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -274,11 +274,11 @@ using the console. To show all events and their listeners, run:
274274

275275
.. code-block:: bash
276276
277-
$ php app/console debug:event-dispatcher
277+
$ php bin/console debug:event-dispatcher
278278
279279
You can get registered listeners for a particular event by specifying
280280
its name:
281281

282282
.. code-block:: bash
283283
284-
$ php app/console debug:event-dispatcher kernel.exception
284+
$ php bin/console debug:event-dispatcher kernel.exception

cookbook/profiler/profiling_data.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ one where the information was generated, use the ``profiler:export`` and
5353
.. code-block:: bash
5454
5555
# on the production machine
56-
$ php app/console profiler:export > profile.data
56+
$ php bin/console profiler:export > profile.data
5757
5858
# on the development machine
59-
$ php app/console profiler:import /path/to/profile.data
59+
$ php bin/console profiler:import /path/to/profile.data
6060
6161
# you can also pipe from the STDIN
62-
$ cat /path/to/profile.data | php app/console profiler:import
62+
$ cat /path/to/profile.data | php bin/console profiler:import

cookbook/security/acl.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Fortunately, there is a task for this. Simply run the following command:
9696

9797
.. code-block:: bash
9898
99-
$ php app/console init:acl
99+
$ php bin/console init:acl
100100
101101
Getting Started
102102
---------------

cookbook/security/entity_provider.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,13 @@ by running:
145145

146146
.. code-block:: bash
147147
148-
$ php app/console doctrine:generate:entities AppBundle/Entity/User
148+
$ php bin/console doctrine:generate:entities AppBundle/Entity/User
149149
150150
Next, make sure to :ref:`create the database table <book-doctrine-creating-the-database-tables-schema>`:
151151

152152
.. code-block:: bash
153153
154-
$ php app/console doctrine:schema:update --force
154+
$ php bin/console doctrine:schema:update --force
155155
156156
What's this UserInterface?
157157
~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)