Skip to content

Commit 432a1d6

Browse files
abdounikarimOskarStark
authored andcommitted
Update routing.rst
I updated path and content file.
1 parent bc3ac26 commit 432a1d6

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

routing.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,14 @@ following configuration file:
3434

3535
.. code-block:: yaml
3636
37-
# config/routes.yaml
37+
# config/routes/annotations.yaml
3838
controllers:
39-
resource: '../src/Controller/'
40-
type: annotation
39+
resource: '../../src/Controller/'
40+
type: annotation
41+
42+
kernel:
43+
resource: ../../src/Kernel.php
44+
type: annotation
4145
4246
This configuration tells Symfony to look for routes defined as annotations in
4347
any PHP class stored in the ``src/Controller/`` directory.

0 commit comments

Comments
 (0)