Skip to content

Commit 831adec

Browse files
committed
merged branch Nanocom/master (PR #15)
Commits ------- a3f0b31 Corrected few typos Discussion ---------- 4 typos and errors corrected
2 parents ae1171a + a3f0b31 commit 831adec

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

book/part11.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ If you were to use our framework right now, you would probably have to add
55
support for custom error messages. Right now, we have 404 and 500 error
66
support but the responses are hardcoded in the framework itself. Making them
77
customizable is easy enough though: dispatch a new event and listen to it.
8-
Doing it right means that the listener have to call a regular controller. But
8+
Doing it right means that the listener has to call a regular controller. But
99
what if the error controller throws an exception? You will end up in an
1010
infinite loop. There should be an easier way, right?
1111

@@ -108,7 +108,7 @@ The error controller reads as follows::
108108
}
109109

110110
Voilà! Clean and customizable error management without efforts. And of course,
111-
of your controller throws an exception, HttpKernel will handle it nicely.
111+
if your controller throws an exception, HttpKernel will handle it nicely.
112112

113113
In part 2, we have talked about the ``Response::prepare()`` method, which
114114
ensures that a Response is compliant with the HTTP specification. It is
@@ -191,12 +191,12 @@ Don't forget to register it in the front controller::
191191

192192
.. note::
193193

194-
If you forget to register the subscriber, HttpKernel will throws an
194+
If you forget to register the subscriber, HttpKernel will throw an
195195
exception with a nice message: ``The controller must return a response
196196
(Nope, this is not a leap year. given).``.
197197

198198
At this point, our whole framework code is as compact as possible and it is
199-
mainly composed of an assembling of existing libraries. Extending is a matter
199+
mainly composed of an assembly of existing libraries. Extending is a matter
200200
of registering event listeners/subscribers.
201201

202202
Hopefully, you now have a better understanding of why the simple looking

0 commit comments

Comments
 (0)