Skip to content

Commit 6ac5f3f

Browse files
committed
minor #13142 Updated route annotations config path (abdounikarim)
This PR was submitted for the 5.0 branch but it was merged into the 4.4 branch instead. Discussion ---------- Updated route annotations config path I updated path and content file. Commits ------- 432a1d6 Update routing.rst
2 parents bc3ac26 + 432a1d6 commit 6ac5f3f

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)