Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions controller/service.rst
Original file line number Diff line number Diff line change
Expand Up @@ -153,14 +153,14 @@ which is a common practice when following the `ADR pattern`_

.. code-block:: php-attributes

// src/Controller/Hello.php
// src/Controller/HelloController.php
namespace App\Controller;

use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Attribute\Route;

#[Route('/hello/{name}', name: 'hello')]
class Hello
class HelloController
{
public function __invoke(string $name = 'World'): Response
{
Expand Down