Skip to content

Commit

Permalink
Minor WS fixes in documentation
Browse files Browse the repository at this point in the history
Spaces at the end of line.
  • Loading branch information
hakre committed Jan 18, 2013
1 parent 39d0c80 commit 5e0a609
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions doc/providers/service_controller.rst
Expand Up @@ -4,7 +4,7 @@ ServiceControllerServiceProvider
As your Silex application grows, you may wish to begin organizing your
controllers in a more formal fashion. Silex can use controller classes out of
the box, but with a bit of work, your controllers can be created as services,
giving you the full power of dependency injection and lazy loading.
giving you the full power of dependency injection and lazy loading.

.. ::todo Link above to controller classes cookbook
Expand All @@ -25,7 +25,7 @@ Why would I want to do this?
framework you are using. Carefully crafted, your controllers will become
reusable with multiple frameworks. By keeping careful control of your
dependencies, your controllers could easily become compatible with Silex,
Symfony (full stack) and Drupal, to name just a few.
Symfony (full stack) and Drupal, to name just a few.

Parameters
----------
Expand Down Expand Up @@ -67,7 +67,7 @@ In this slightly contrived example of a blog API, we're going to change the
});
Rewriting your controller as a service is pretty simple, create a Plain Ol' PHP
Object with your ``PostRepository`` as a dependency, along with an
Object with your ``PostRepository`` as a dependency, along with an
``indexJsonAction`` method to handle the request. Although not shown in the
example below, you can use type hinting and parameter naming to get the
parameters you need, just like with standard Silex routes.
Expand Down
2 changes: 1 addition & 1 deletion doc/usage.rst
Expand Up @@ -100,7 +100,7 @@ A route pattern consists of:
pattern can include variable parts and you are able to set RegExp
requirements for them.

* *Method*: One of the following HTTP methods: ``GET``, ``POST``, ``PUT`` or
* *Method*: One of the following HTTP methods: ``GET``, ``POST``, ``PUT`` or
``DELETE``. This describes the interaction with the resource. Commonly only
``GET`` and ``POST`` are used, but it is possible to use the others as well.

Expand Down

0 comments on commit 5e0a609

Please sign in to comment.