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.
1 parent 88cf74d commit f767aa9Copy full SHA for f767aa9
controller/forwarding.rst
@@ -14,7 +14,7 @@ and calls the defined controller. The ``forward()`` method returns the
14
:class:`Symfony\\Component\\HttpFoundation\\Response` object that is returned
15
from *that* controller::
16
17
- public function index($name)
+ public function index($name): Response
18
{
19
$response = $this->forward('App\Controller\OtherController::fancy', [
20
'name' => $name,
@@ -29,7 +29,7 @@ from *that* controller::
29
The array passed to the method becomes the arguments for the resulting controller.
30
The target controller method might look something like this::
31
32
- public function fancy($name, $color)
+ public function fancy(string $name, string $color): Response
33
34
// ... create and return a Response object
35
}
0 commit comments