From a2dbf2b51d0d9d1c4f5f9408456494aca8812085 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Fri, 23 Feb 2018 14:51:54 +0100 Subject: [PATCH] fix console script path --- configuration/multiple_kernels.rst | 6 +++--- reference/configuration/framework.rst | 4 ++-- reference/events.rst | 14 +++++++------- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/configuration/multiple_kernels.rst b/configuration/multiple_kernels.rst index 9efd60e51ab..b6359a99bda 100644 --- a/configuration/multiple_kernels.rst +++ b/configuration/multiple_kernels.rst @@ -143,9 +143,9 @@ config files or better, import them and override the needed options: Executing Commands with a Different Kernel ------------------------------------------ -The ``app/console`` script used to run Symfony commands always uses the default +The ``bin/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 ``app/console`` +to execute console commands using the new kernel, duplicate the ``bin/console`` script and rename it (e.g. ``bin/api``). Then, replace the ``AppKernel`` instantiation by your own kernel instantiation @@ -155,7 +155,7 @@ new kernel. .. note:: - The commands available for each console script (e.g. ``app/console`` and + The commands available for each console script (e.g. ``bin/console`` and ``bin/api``) can differ because they depend on the bundles enabled for each kernel, which could be different. diff --git a/reference/configuration/framework.rst b/reference/configuration/framework.rst index bc4cfe15bd0..0f20d02e78c 100644 --- a/reference/configuration/framework.rst +++ b/reference/configuration/framework.rst @@ -13,10 +13,10 @@ configured under the ``framework`` key in your application configuration. .. code-block:: terminal # displays the default config values defined by Symfony - $ php app/console config:dump framework + $ php bin/console config:dump framework # displays the actual config values used by your application - $ php app/console debug:config framework + $ php bin/console debug:config framework .. note:: diff --git a/reference/events.rst b/reference/events.rst index 7bd6bbd57d9..bc5a381fe04 100644 --- a/reference/events.rst +++ b/reference/events.rst @@ -43,7 +43,7 @@ their priorities: .. code-block:: terminal - $ php app/console debug:event-dispatcher kernel.request + $ php bin/console debug:event-dispatcher kernel.request ``kernel.controller`` ~~~~~~~~~~~~~~~~~~~~~ @@ -74,7 +74,7 @@ their priorities: .. code-block:: terminal - $ php app/console debug:event-dispatcher kernel.controller + $ php bin/console debug:event-dispatcher kernel.controller ``kernel.view`` ~~~~~~~~~~~~~~~ @@ -108,7 +108,7 @@ their priorities: .. code-block:: terminal - $ php app/console debug:event-dispatcher kernel.view + $ php bin/console debug:event-dispatcher kernel.view ``kernel.response`` ~~~~~~~~~~~~~~~~~~~ @@ -135,7 +135,7 @@ their priorities: .. code-block:: terminal - $ php app/console debug:event-dispatcher kernel.response + $ php bin/console debug:event-dispatcher kernel.response ``kernel.finish_request`` ~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -162,7 +162,7 @@ their priorities: .. code-block:: terminal - $ php app/console debug:event-dispatcher kernel.finish_request + $ php bin/console debug:event-dispatcher kernel.finish_request ``kernel.terminate`` ~~~~~~~~~~~~~~~~~~~~ @@ -183,7 +183,7 @@ their priorities: .. code-block:: terminal - $ php app/console debug:event-dispatcher kernel.terminate + $ php bin/console debug:event-dispatcher kernel.terminate .. _kernel-kernel.exception: @@ -256,6 +256,6 @@ their priorities: .. code-block:: terminal - $ php app/console debug:event-dispatcher kernel.exception + $ php bin/console debug:event-dispatcher kernel.exception .. _`param converters`: https://symfony.com/doc/master/bundles/SensioFrameworkExtraBundle/annotations/converters.html