Permalink
Browse files

minor #3800 Fixed another blockquote rendering issue (WouterJ)

This PR was merged into the 2.3 branch.

Discussion
----------

Fixed another blockquote rendering issue

Another blockquote rendering issue.

| Q   | A
| --- | ---
| Doc fix? | yes
| New docs? | no
| Applies to | all
| Fixed tickets | -

Commits
-------

6072d07 Fixed wrong blockquote rendering
  • Loading branch information...
weaverryan committed Apr 21, 2014
2 parents 969fd71 + 6072d07 commit 55442b55fb3efb2d59914724eec197ec17cb76e4
Showing with 28 additions and 28 deletions.
  1. +28 −28 book/controller.rst
@@ -279,44 +279,44 @@ the following guidelines in mind while you develop.
* **The order of the controller arguments does not matter**
Symfony is able to match the parameter names from the route to the variable
names in the controller method's signature. In other words, it realizes that
the ``{lastName}`` parameter matches up with the ``$lastName`` argument.
The arguments of the controller could be totally reordered and still work
perfectly::
public function indexAction($lastName, $color, $firstName)
{
// ...
}
Symfony is able to match the parameter names from the route to the variable
names in the controller method's signature. In other words, it realizes that
the ``{lastName}`` parameter matches up with the ``$lastName`` argument.
The arguments of the controller could be totally reordered and still work
perfectly::
public function indexAction($lastName, $color, $firstName)
{
// ...
}
* **Each required controller argument must match up with a routing parameter**
The following would throw a ``RuntimeException`` because there is no ``foo``
parameter defined in the route::
The following would throw a ``RuntimeException`` because there is no ``foo``
parameter defined in the route::
public function indexAction($firstName, $lastName, $color, $foo)
{
// ...
}
public function indexAction($firstName, $lastName, $color, $foo)
{
// ...
}
Making the argument optional, however, is perfectly ok. The following
example would not throw an exception::
Making the argument optional, however, is perfectly ok. The following
example would not throw an exception::
public function indexAction($firstName, $lastName, $color, $foo = 'bar')
{
// ...
}
public function indexAction($firstName, $lastName, $color, $foo = 'bar')
{
// ...
}
* **Not all routing parameters need to be arguments on your controller**
If, for example, the ``lastName`` weren't important for your controller,
you could omit it entirely::
If, for example, the ``lastName`` weren't important for your controller,
you could omit it entirely::
public function indexAction($firstName, $color)
{
// ...
}
public function indexAction($firstName, $color)
{
// ...
}
.. tip::

0 comments on commit 55442b5

Please sign in to comment.