Skip to content

Commit 7fa6451

Browse files
committed
minor #21584 Fix controller name (inwebo)
This PR was merged into the 6.4 branch. Discussion ---------- Fix controller name Add _Controller_ suffix to controller class. Commits ------- 96c319f Fix controller name
2 parents fcb6dce + 96c319f commit 7fa6451

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

controller/service.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,14 +153,14 @@ which is a common practice when following the `ADR pattern`_
153153

154154
.. code-block:: php-attributes
155155
156-
// src/Controller/Hello.php
156+
// src/Controller/HelloController.php
157157
namespace App\Controller;
158158
159159
use Symfony\Component\HttpFoundation\Response;
160160
use Symfony\Component\Routing\Attribute\Route;
161161
162162
#[Route('/hello/{name}', name: 'hello')]
163-
class Hello
163+
class HelloController
164164
{
165165
public function __invoke(string $name = 'World'): Response
166166
{

0 commit comments

Comments
 (0)