Skip to content

Commit 9c8f3cb

Browse files
Update routing.rst
1 parent c9b6ae9 commit 9c8f3cb

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
@@ -172,7 +172,9 @@ Use the ``methods`` option to restrict the verbs each route should respond to:
172172
// src/Controller/BlogApiController.php
173173
namespace App\Controller;
174174
175-
// ...
175+
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
176+
use Symfony\Component\HttpFoundation\Response;
177+
use Symfony\Component\Routing\Annotation\Route;
176178
177179
class BlogApiController extends AbstractController
178180
{

0 commit comments

Comments
 (0)