8000 minor #10480 Update to micro_kernel_trait.rst (Alienpruts, alexislefe… · symfony/symfony-docs@4e2b59f · GitHub
[go: up one dir, main page]

Skip to content

Commit 4e2b59f

Browse files
committed
minor #10480 Update to micro_kernel_trait.rst (Alienpruts, alexislefebvre)
This PR was merged into the 3.4 branch. Discussion ---------- 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 :) <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- cca8833 Update micro_kernel_trait.rst fe2efd4 Update configuration/micro_kernel_trait.rst aaa2b2b Update to micro_kernel_trait.rst
2 parents e102063 + cca8833 commit 4e2b59f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

configuration/micro_kernel_trait.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,14 @@ your ``composer.json`` file to load from there:
126126
}
127127
}
128128
129+
Before going any further, you need to regenerate the autoload files! Your changes in the "autoload"
130+
section of the ``composer.json`` file will not be in effect until you run the following command:
131+
132+
.. code-block:: bash
133+
134+
$ composer dump-autoload
135+
136+
129137
Now, suppose you want to use Twig and load routes via annotations. Instead of
130138
putting *everything* in ``index.php``, create a new ``app/AppKernel.php`` to
131139
hold the kernel. Now it looks like this::

0 commit comments

Comments
 (0)
0