@@ -5,7 +5,7 @@ If you were to use our framework right now, you would probably have to add
55support for custom error messages. Right now, we have 404 and 500 error
66support but the responses are hardcoded in the framework itself. Making them
77customizable 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
99what if the error controller throws an exception? You will end up in an
1010infinite loop. There should be an easier way, right?
1111
@@ -108,7 +108,7 @@ The error controller reads as follows::
108108 }
109109
110110Voilà! 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
113113In part 2, we have talked about the ``Response::prepare() `` method, which
114114ensures 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
198198At 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
200200of registering event listeners/subscribers.
201201
202202Hopefully, you now have a better understanding of why the simple looking
0 commit comments