File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ Annotation Routes
8989
9090Instead of defining your route in YAML, Symfony also allows you to use *annotation *
9191or *attribute * routes. Attributes are built-in in PHP starting from PHP 8. In earlier
92- PHP versions you can use annotations. To do this, install the annotations package:
92+ PHP versions you can use annotations, which require installing this package:
9393
9494.. code-block :: terminal
9595
@@ -108,9 +108,9 @@ You can now add your route directly *above* the controller:
108108
109109 class LuckyController
110110 {
111- + /**
112- + * @Route("/lucky/number")
113- + */
111+ /**
112+ * @Route("/lucky/number")
113+ */
114114 public function number(): Response
115115 {
116116 // this looks exactly the same
@@ -122,11 +122,11 @@ You can now add your route directly *above* the controller:
122122 // src/Controller/LuckyController.php
123123
124124 // ...
125- + use Symfony\Component\Routing\Annotation\Route;
125+ use Symfony\Component\Routing\Annotation\Route;
126126
127127 class LuckyController
128128 {
129- + #[Route('/lucky/number')]
129+ #[Route('/lucky/number')]
130130 public function number(): Response
131131 {
132132 // this looks exactly the same
You can’t perform that action at this time.
0 commit comments