Skip to content

Commit aaa2b2b

Browse files
authored
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 :)
1 parent a92d44b commit aaa2b2b

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 dumpautoload
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)