File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -606,17 +606,16 @@ The ``file()`` helper provides some arguments to configure its behavior::
606
606
Final Thoughts
607
607
--------------
608
608
609
- In Symfony, a controller is usualll a class method which is used to accept requests,
610
- and return a ``Response `` object. Symfony provides an ``AbstractController `` which
611
- can be used to extend the controller class, and alllows access to some frequently used utilties
609
+ In Symfony, a controller is usually a class method which is used to accept requests,
610
+ and return a ``Response `` object. When mapped with a url, a controller a controller's response
611
+ can be viewed.
612
+
613
+ To facilitate the development of controllers, Symfony provides an ``AbstractController ``. It
614
+ can be used to extend the controller class allowing access to some frequently used utilities
612
615
such as ``render `` and ``redirectToRoute ``. The ``AbstractController `` also
613
616
provides the ``createNotFoundException `` utility which is used to return a page
614
617
not found response.
615
618
616
- Services are accesible in controllers by typehinting them in the arguments of the controller methods.
617
- Consequently, objects such as the ``Session `` and ``Request `` objects are injected
618
- into the controller in this manner.
619
-
620
619
In other articles, you'll learn how to use specific services from inside your controller
621
620
that will help you persist and fetch objects from a database, process form submissions,
622
621
handle caching and more.
You can’t perform that action at this time.
0 commit comments