10000 Update most important book articles to follow the best practices by wouterj · Pull Request #4427 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Update most important book articles to follow the best practices #4427

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Nov 7, 2014
Merged
Prev Previous commit
Fixed error
  • Loading branch information
wouterj committed Nov 7, 2014
commit e56c272cb231d554d27e544c0785e0547793d910
10 changes: 5 additions & 5 deletions book/routing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ The route is simple:

.. configuration-block::

.. code-block:: php-annotation
.. code-block:: php-annotations

// src/AppBundle/Controller/BlogController.php
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should mention that the file must be imported in the main routing file. (Or is it automatic ?)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we explain it later in the article. And the new SE comes with this automatically

namespace AppBundle\Controller;
Expand Down Expand Up @@ -213,7 +213,7 @@ A basic route consists of just two parts: the ``path`` to match and a

.. configuration-block::

.. code-block:: php-annotation
.. code-block:: php-annotations

// src/AppBundle/Controller/MainController.php

Expand Down Expand Up @@ -280,7 +280,7 @@ routes will contain one or more named "wildcard" placeholders:

.. configuration-block::

.. code-block:: php-annotation
.. code-block:: php-annotations

// src/AppBundle/Controller/BlogController.php

Expand Down Expand Up @@ -348,7 +348,7 @@ the available blog posts for this imaginary blog application:

.. configuration-block::

.. code-block:: php-annotation
.. code-block:: php-annotations

// src/AppBundle/Controller/BlogController.php

Expand Down Expand Up @@ -932,7 +932,7 @@ routing system can be:

.. configuration-block::

.. code-block:: php-annotation
.. code-block:: php-annotations

// src/AppBundle/Controller/ArticleController.php

Expand Down
0