Skip to content

fix console script path #9316

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions configuration/multiple_kernels.rst
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ config files or better, import them and override the needed options:
Executing Commands with a Different Kernel
------------------------------------------

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

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

.. note::

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

Expand Down
14 changes: 7 additions & 7 deletions reference/events.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ their priorities:

.. code-block:: terminal

$ php bin/console debug:event-dispatcher kernel.request
$ php app/console debug:event-dispatcher kernel.request

``kernel.controller``
~~~~~~~~~~~~~~~~~~~~~
Expand Down Expand Up @@ -74,7 +74,7 @@ their priorities:

.. code-block:: terminal

$ php bin/console debug:event-dispatcher kernel.controller
$ php app/console debug:event-dispatcher kernel.controller

``kernel.view``
~~~~~~~~~~~~~~~
Expand Down Expand Up @@ -108,7 +108,7 @@ their priorities:

.. code-block:: terminal

$ php bin/console debug:event-dispatcher kernel.view
$ php app/console debug:event-dispatcher kernel.view

``kernel.response``
~~~~~~~~~~~~~~~~~~~
Expand All @@ -135,7 +135,7 @@ their priorities:

.. code-block:: terminal

$ php bin/console debug:event-dispatcher kernel.response
$ php app/console debug:event-dispatcher kernel.response

``kernel.finish_request``
~~~~~~~~~~~~~~~~~~~~~~~~~
Expand All @@ -162,7 +162,7 @@ their priorities:

.. code-block:: terminal

$ php bin/console debug:event-dispatcher kernel.finish_request
$ php app/console debug:event-dispatcher kernel.finish_request

``kernel.terminate``
~~~~~~~~~~~~~~~~~~~~
Expand All @@ -183,7 +183,7 @@ their priorities:

.. code-block:: terminal

$ php bin/console debug:event-dispatcher kernel.terminate
$ php app/console debug:event-dispatcher kernel.terminate

.. _kernel-kernel.exception:

Expand Down Expand Up @@ -243,6 +243,6 @@ their priorities:

.. code-block:: terminal

$ php bin/console debug:event-dispatcher kernel.exception
$ php app/console debug:event-dispatcher kernel.exception

.. _`param converters`: https://symfony.com/doc/master/bundles/SensioFrameworkExtraBundle/annotations/converters.html
8 changes: 4 additions & 4 deletions translation/lint.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ using the ``lint:yaml`` command:
.. code-block:: terminal

# lint a single file
$ ./bin/console lint:yaml app/Resources/translations/messages.en.yml
$ ./app/console lint:yaml app/Resources/translations/messages.en.yml

# lint a whole directory
$ ./bin/console lint:yaml app/Resources/translations
$ ./app/console lint:yaml app/Resources/translations

# lint a specific bundle
$ ./bin/console lint:yaml @AppBundle
$ ./app/console lint:yaml @AppBundle

The linter results can be exported to JSON using the ``--format`` option:

.. code-block:: terminal

# lint a single file
$ ./bin/console lint:yaml app/Resources/translations --format=json
$ ./app/console lint:yaml app/Resources/translations --format=json