Skip to content

Commit 0fa3f0e

Browse files
committed
minor #9316 fix console script path (xabbuh)
This PR was merged into the 2.7 branch. Discussion ---------- fix console script path Commits ------- 00e7628 fix console script path
2 parents 3d91aca + 00e7628 commit 0fa3f0e

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

configuration/multiple_kernels.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,9 @@ config files or better, import them and override the needed options:
143143
Executing Commands with a Different Kernel
144144
------------------------------------------
145145

146-
The ``bin/console`` script used to run Symfony commands always uses the default
146+
The ``app/console`` script used to run Symfony commands always uses the default
147147
``AppKernel`` class to build the application and load the commands. If you need
148-
to execute console commands using the new kernel, duplicate the ``bin/console``
148+
to execute console commands using the new kernel, duplicate the ``app/console``
149149
script and rename it (e.g. ``bin/api``).
150150

151151
Then, replace the ``AppKernel`` instantiation by your own kernel instantiation
@@ -155,7 +155,7 @@ new kernel.
155155

156156
.. note::
157157

158-
The commands available for each console script (e.g. ``bin/console`` and
158+
The commands available for each console script (e.g. ``app/console`` and
159159
``bin/api``) can differ because they depend on the bundles enabled for each
160160
kernel, which could be different.
161161

reference/events.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ their priorities:
4343

4444
.. code-block:: terminal
4545
46-
$ php bin/console debug:event-dispatcher kernel.request
46+
$ php app/console debug:event-dispatcher kernel.request
4747
4848
``kernel.controller``
4949
~~~~~~~~~~~~~~~~~~~~~
@@ -74,7 +74,7 @@ their priorities:
7474

7575
.. code-block:: terminal
7676
77-
$ php bin/console debug:event-dispatcher kernel.controller
77+
$ php app/console debug:event-dispatcher kernel.controller
7878
7979
``kernel.view``
8080
~~~~~~~~~~~~~~~
@@ -108,7 +108,7 @@ their priorities:
108108

109109
.. code-block:: terminal
110110
111-
$ php bin/console debug:event-dispatcher kernel.view
111+
$ php app/console debug:event-dispatcher kernel.view
112112
113113
``kernel.response``
114114
~~~~~~~~~~~~~~~~~~~
@@ -135,7 +135,7 @@ their priorities:
135135

136136
.. code-block:: terminal
137137
138-
$ php bin/console debug:event-dispatcher kernel.response
138+
$ php app/console debug:event-dispatcher kernel.response
139139
140140
``kernel.finish_request``
141141
~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -162,7 +162,7 @@ their priorities:
162162

163163
.. code-block:: terminal
164164
165-
$ php bin/console debug:event-dispatcher kernel.finish_request
165+
$ php app/console debug:event-dispatcher kernel.finish_request
166166
167167
``kernel.terminate``
168168
~~~~~~~~~~~~~~~~~~~~
@@ -183,7 +183,7 @@ their priorities:
183183

184184
.. code-block:: terminal
185185
186-
$ php bin/console debug:event-dispatcher kernel.terminate
186+
$ php app/console debug:event-dispatcher kernel.terminate
187187
188188
.. _kernel-kernel.exception:
189189

@@ -243,6 +243,6 @@ their priorities:
243243

244244
.. code-block:: terminal
245245
246-
$ php bin/console debug:event-dispatcher kernel.exception
246+
$ php app/console debug:event-dispatcher kernel.exception
247247
248248
.. _`param converters`: https://symfony.com/doc/master/bundles/SensioFrameworkExtraBundle/annotations/converters.html

translation/lint.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ using the ``lint:yaml`` command:
1515
.. code-block:: terminal
1616
1717
# lint a single file
18-
$ ./bin/console lint:yaml app/Resources/translations/messages.en.yml
18+
$ ./app/console lint:yaml app/Resources/translations/messages.en.yml
1919
2020
# lint a whole directory
21-
$ ./bin/console lint:yaml app/Resources/translations
21+
$ ./app/console lint:yaml app/Resources/translations
2222
2323
# lint a specific bundle
24-
$ ./bin/console lint:yaml @AppBundle
24+
$ ./app/console lint:yaml @AppBundle
2525
2626
The linter results can be exported to JSON using the ``--format`` option:
2727

2828
.. code-block:: terminal
2929
3030
# lint a single file
31-
$ ./bin/console lint:yaml app/Resources/translations --format=json
31+
$ ./app/console lint:yaml app/Resources/translations --format=json

0 commit comments

Comments
 (0)