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.
120120Generating URLs
121121~~~~~~~~~~~~~~~
122122
123- The :method: `Symfony\\ Bundle\\ FrameworkBundle\\ Controller\\ ControllerTrait ::generateUrl `
123+ The :method: `Symfony\\ Bundle\\ FrameworkBundle\\ Controller\\ AbstractController ::generateUrl `
124124method is just a helper method that generates the URL for a given route::
125125
126126 $url = $this->generateUrl('app_lucky_number', array('max' => 10));
@@ -328,7 +328,7 @@ special type of exception::
328328 return $this->render(...);
329329 }
330330
331- The :method: `Symfony\\ Bundle\\ FrameworkBundle\\ Controller\\ ControllerTrait ::createNotFoundException `
331+ The :method: `Symfony\\ Bundle\\ FrameworkBundle\\ Controller\\ AbstractController ::createNotFoundException `
332332method is just a shortcut to create a special
333333:class: `Symfony\\ Component\\ HttpKernel\\ Exception\\ NotFoundHttpException `
334334object, which ultimately triggers a 404 HTTP response inside Symfony.
@@ -581,7 +581,7 @@ the :phpfunction:`json_encode` function is used.
581581Streaming File Responses
582582~~~~~~~~~~~~~~~~~~~~~~~~
583583
584- You can use the :method: `Symfony\\ Bundle\\ FrameworkBundle\\ Controller\\ Controller ::file `
584+ You can use the :method: `Symfony\\ Bundle\\ FrameworkBundle\\ Controller\\ AbstractController ::file `
585585helper to serve a file from inside a controller::
586586
587587 public function download()
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ How to Forward Requests to another Controller
55=============================================
66
77Though 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 `
99method. Instead of redirecting the user's browser, this makes an "internal"
1010sub-request and calls the defined controller. The ``forward() `` method returns
1111the :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:
279279 </form>
280280
281281 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 `
283283to check its validity::
284284
285285 use Symfony\Component\HttpFoundation\Request;
You can’t perform that action at this time.
0 commit comments