Skip to content

Commit 222ff1b

Browse files
Fixed typos on the controller.rst
Fixed typos and restructured the Final Thoughts section of controller.rst.
1 parent 00b403c commit 222ff1b

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

controller.rst

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -606,17 +606,16 @@ The ``file()`` helper provides some arguments to configure its behavior::
606606
Final Thoughts
607607
--------------
608608

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
612615
such as ``render`` and ``redirectToRoute``. The ``AbstractController`` also
613616
provides the ``createNotFoundException`` utility which is used to return a page
614617
not found response.
615618

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-
620619
In other articles, you'll learn how to use specific services from inside your controller
621620
that will help you persist and fetch objects from a database, process form submissions,
622621
handle caching and more.

0 commit comments

Comments
 (0)