We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5a09573 + 0f85c22 commit 14cc038Copy full SHA for 14cc038
templates.rst
@@ -216,6 +216,30 @@ Consider the following routing configuration:
216
}
217
218
219
+ .. code-block:: php-attributes
220
+
221
+ // src/Controller/BlogController.php
222
+ namespace App\Controller;
223
224
+ // ...
225
+ use Symfony\Component\HttpFoundation\Response;
226
+ use Symfony\Component\Routing\Annotation\Route;
227
228
+ class BlogController extends AbstractController
229
+ {
230
+ #[Route('/', name: 'blog_index')]
231
+ public function index(): Response
232
233
234
+ }
235
236
+ #[Route('/article/{slug}', name: 'blog_post')]
237
+ public function show(string $slug): Response
238
239
240
241
242
243
.. code-block:: yaml
244
245
# config/routes.yaml
0 commit comments