Skip to content

Commit 37b4d00

Browse files
committed
minor #19613 [Routing] Update routing.rst (vimalgorasiya)
This PR was submitted for the 7.0 branch but it was merged into the 6.4 branch instead. Discussion ---------- [Routing] Update routing.rst Hello, This pull request enhances the code snippets under the **Matching HTTP Methods** section by adding the missing import namespaces for Symfony components. The updated code in `src/Controller/BlogApiController.php` now includes the necessary use statements, ensuring clarity and correctness. If further improvements or updates are needed, please let me know. Thanks. Commits ------- e16d286 Update routing.rst
2 parents ef0934d + e16d286 commit 37b4d00

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

routing.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,9 @@ Use the ``methods`` option to restrict the verbs each route should respond to:
176176
// src/Controller/BlogApiController.php
177177
namespace App\Controller;
178178
179-
// ...
179+
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
180+
use Symfony\Component\HttpFoundation\Response;
181+
use Symfony\Component\Routing\Annotation\Route;
180182
181183
class BlogApiController extends AbstractController
182184
{

0 commit comments

Comments
 (0)