From aaa2b2b0893d5e2b63a6b90de90e5f03d131c0be Mon Sep 17 00:00:00 2001 From: Bert Van de Casteele Date: Sat, 13 Oct 2018 00:30:11 +0200 Subject: [PATCH 1/3] Update to micro_kernel_trait.rst Whenever you make a change to the "autoload' section of the composer.json file (amongst others), you need to regenerate the autoload files using composer dumpautoload, otherwise your changes will not be seen. More info : https://getcomposer.org/doc/03-cli.md#dump-autoload-dumpautoload- Sorry if the proposed changes are not marked up properly, haven't gotten the hang of Markup language just yet :) --- configuration/micro_kernel_trait.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configuration/micro_kernel_trait.rst b/configuration/micro_kernel_trait.rst index 9a576fdc10e..174d1f5acb7 100644 --- a/configuration/micro_kernel_trait.rst +++ b/configuration/micro_kernel_trait.rst @@ -126,6 +126,14 @@ your ``composer.json`` file to load from there: } } +Before going any further, you need to regenerate the autoload files! Your changes in the "autoload" +section of the composer.json file will not be in effect until you run the following command: + +.. code-block:: bash + + $ composer dumpautoload + + Now, suppose you want to use Twig and load routes via annotations. Instead of putting *everything* in ``index.php``, create a new ``app/AppKernel.php`` to hold the kernel. Now it looks like this:: From fe2efd4616682854c026809c6e761e0e7ce3eadb Mon Sep 17 00:00:00 2001 From: Alexis Lefebvre Date: Thu, 15 Nov 2018 04:17:22 +0100 Subject: [PATCH 2/3] Update configuration/micro_kernel_trait.rst Co-Authored-By: Alienpruts --- configuration/micro_kernel_trait.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configuration/micro_kernel_trait.rst b/configuration/micro_kernel_trait.rst index 174d1f5acb7..79fdb3e4d2a 100644 --- a/configuration/micro_kernel_trait.rst +++ b/configuration/micro_kernel_trait.rst @@ -131,7 +131,7 @@ section of the composer.json file will not be in effect until you run the follow .. code-block:: bash - $ composer dumpautoload + $ composer dump-autoload Now, suppose you want to use Twig and load routes via annotations. Instead of From cca883364aefd59732dd0b1f99e0a6bd78fff5fc Mon Sep 17 00:00:00 2001 From: Bert Van de Casteele Date: Thu, 15 Nov 2018 11:06:04 +0100 Subject: [PATCH 3/3] Update micro_kernel_trait.rst --- configuration/micro_kernel_trait.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configuration/micro_kernel_trait.rst b/configuration/micro_kernel_trait.rst index 79fdb3e4d2a..3d9291570d7 100644 --- a/configuration/micro_kernel_trait.rst +++ b/configuration/micro_kernel_trait.rst @@ -127,7 +127,7 @@ your ``composer.json`` file to load from there: } Before going any further, you need to regenerate the autoload files! Your changes in the "autoload" -section of the composer.json file will not be in effect until you run the following command: +section of the ``composer.json`` file will not be in effect until you run the following command: .. code-block:: bash