Skip to content

Commit

Permalink
Corrected few typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud Kleinpeter authored and nanocom committed Jan 23, 2012
1 parent ae1171a commit a3f0b31
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions book/part11.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ If you were to use our framework right now, you would probably have to add
support for custom error messages. Right now, we have 404 and 500 error
support but the responses are hardcoded in the framework itself. Making them
customizable is easy enough though: dispatch a new event and listen to it.
Doing it right means that the listener have to call a regular controller. But
Doing it right means that the listener has to call a regular controller. But
what if the error controller throws an exception? You will end up in an
infinite loop. There should be an easier way, right?

Expand Down Expand Up @@ -108,7 +108,7 @@ The error controller reads as follows::
}

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

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

.. note::

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

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

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

0 comments on commit a3f0b31

Please sign in to comment.