File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ and many others that you'll learn about next.
120
120
Generating URLs
121
121
~~~~~~~~~~~~~~~
122
122
123
- The :method: `Symfony\\ Bundle\\ FrameworkBundle\\ Controller\\ ControllerTrait ::generateUrl `
123
+ The :method: `Symfony\\ Bundle\\ FrameworkBundle\\ Controller\\ AbstractController ::generateUrl `
124
124
method is just a helper method that generates the URL for a given route::
125
125
126
126
$url = $this->generateUrl('app_lucky_number', array('max' => 10));
@@ -328,7 +328,7 @@ special type of exception::
328
328
return $this->render(...);
329
329
}
330
330
331
- The :method: `Symfony\\ Bundle\\ FrameworkBundle\\ Controller\\ ControllerTrait ::createNotFoundException `
331
+ The :method: `Symfony\\ Bundle\\ FrameworkBundle\\ Controller\\ AbstractController ::createNotFoundException `
332
332
method is just a shortcut to create a special
333
333
:class: `Symfony\\ Component\\ HttpKernel\\ Exception\\ NotFoundHttpException `
334
334
object, which ultimately triggers a 404 HTTP response inside Symfony.
@@ -581,7 +581,7 @@ the :phpfunction:`json_encode` function is used.
581
581
Streaming File Responses
582
582
~~~~~~~~~~~~~~~~~~~~~~~~
583
583
584
- You can use the :method: `Symfony\\ Bundle\\ FrameworkBundle\\ Controller\\ Controller ::file `
584
+ You can use the :method: `Symfony\\ Bundle\\ FrameworkBundle\\ Controller\\ AbstractController ::file `
585
585
helper to serve a file from inside a controller::
586
586
587
587
public function download()
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ How to Forward Requests to another Controller
5
5
=============================================
6
6
7
7
Though not very common, you can also forward to another controller internally
8
- with the :method: `Symfony\\ Bundle\\ FrameworkBundle\\ Controller\\ Controller ::forward `
8
+ with the :method: `Symfony\\ Bundle\\ FrameworkBundle\\ Controller\\ AbstractController ::forward `
9
9
method. Instead of redirecting the user's browser, this makes an "internal"
10
10
sub-request and calls the defined controller. The ``forward() `` method returns
11
11
the :class: `Symfony\\ Component\\ HttpFoundation\\ Response ` object that is returned
Original file line number Diff line number Diff line change @@ -279,7 +279,7 @@ token and store it as a hidden field of the form:
279
279
</form>
280
280
281
281
Then, get the value of the CSRF token in the controller action and use the
282
- :method: `Symfony\\ Bundle\\ FrameworkBundle\\ Controller\\ Controller ::isCsrfTokenValid `
282
+ :method: `Symfony\\ Bundle\\ FrameworkBundle\\ Controller\\ AbstractController ::isCsrfTokenValid `
283
283
to check its validity::
284
284
285
285
use Symfony\Component\HttpFoundation\Request;
You can’t perform that action at this time.
0 commit comments