Skip to content

Commit 4b7e0ef

Browse files
committed
use diff code block for config changes too
1 parent dfa2ab3 commit 4b7e0ef

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

page_creation.rst

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,17 @@ routes. First, install the annotations package:
102102
Then, in ``config/routes.yaml``, remove the route you just created and uncomment
103103
the annotation route import at the bottom:
104104

105-
.. code-block:: yaml
105+
.. code-block:: diff
106106
107-
controllers:
108-
resource: ../src/Controller/
109-
type: annotation
107+
# config/routes.yaml
108+
# ...
109+
110+
- #controllers:
111+
- # resource: ../src/Controller/
112+
- # type: annotation
113+
+ controllers:
114+
+ resource: ../src/Controller/
115+
+ type: annotation
110116
111117
After this one-time setup, you can now add your route directly *above* the controller:
112118

0 commit comments

Comments
 (0)