@@ -5,7 +5,7 @@ If you were to use our framework right now, you would probably have to add
5
5
support for custom error messages. Right now, we have 404 and 500 error
6
6
support but the responses are hardcoded in the framework itself. Making them
7
7
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
9
9
what if the error controller throws an exception? You will end up in an
10
10
infinite loop. There should be an easier way, right?
11
11
@@ -108,7 +108,7 @@ The error controller reads as follows::
108
108
}
109
109
110
110
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.
112
112
113
113
In part 2, we have talked about the ``Response::prepare() `` method, which
114
114
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::
191
191
192
192
.. note ::
193
193
194
- If you forget to register the subscriber, HttpKernel will throws an
194
+ If you forget to register the subscriber, HttpKernel will throw an
195
195
exception with a nice message: ``The controller must return a response
196
196
(Nope, this is not a leap year. given). ``.
197
197
198
198
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
200
200
of registering event listeners/subscribers.
201
201
202
202
Hopefully, you now have a better understanding of why the simple looking
0 commit comments