Skip to content

Commit adf7f8f

Browse files
committed
Merge branch '2.7' into 2.8
* 2.7: Add "Next" links to Best Practices
2 parents ee5c919 + 5438dc7 commit adf7f8f

File tree

10 files changed

+40
-0
lines changed

10 files changed

+40
-0
lines changed

best_practices/business-logic.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,10 @@ were defined by the PHP community. You can learn more about
333333
use the `PHP-CS-Fixer`_, which is a command-line utility that can fix the
334334
coding standards of an entire codebase in a matter of seconds.
335335

336+
----
337+
338+
Next: :doc:`/best_practices/controllers`
339+
336340
.. _`full definition`: https://en.wikipedia.org/wiki/Business_logic
337341
.. _`Doctrine project`: http://www.doctrine-project.org/
338342
.. _`fixture class`: https://symfony.com/doc/current/bundles/DoctrineFixturesBundle/index.html#writing-simple-fixtures

best_practices/configuration.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,5 +203,9 @@ that you store them outside the Symfony project and make them available
203203
through environment variables. Learn how to do it in the following article:
204204
:doc:`/configuration/external_parameters`.
205205

206+
----
207+
208+
Next: :doc:`/best_practices/business-logic`
209+
206210
.. _`feature toggles`: https://en.wikipedia.org/wiki/Feature_toggle
207211
.. _`constant() function`: http://twig.sensiolabs.org/doc/functions/constant.html

best_practices/controllers.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,4 +211,8 @@ If you need to execute some code before or after the execution of your controlle
211211
you can use the EventDispatcher component to
212212
:doc:`set up before and after filters </event_dispatcher/before_after_filters>`.
213213

214+
----
215+
216+
Next: :doc:`/best_practices/templates`
217+
214218
.. _`ParamConverter`: https://symfony.com/doc/current/bundles/SensioFrameworkExtraBundle/annotations/converters.html

best_practices/creating-the-project.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,10 @@ In addition, Symfony3 uses a slightly different directory structure:
177177
The changes are pretty superficial, but for now, we recommend that you use
178178
the Symfony directory structure.
179179

180+
----
181+
182+
Next: :doc:`/best_practices/configuration`
183+
180184
.. _`Composer`: https://getcomposer.org/
181185
.. _`Phar extension`: http://php.net/manual/en/intro.phar.php
182186
.. _`public checksums repository`: https://github.com/sensiolabs/checksums

best_practices/forms.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,3 +207,7 @@ Second, we recommend using ``$form->isSubmitted()`` in the ``if`` statement
207207
for clarity. This isn't technically needed, since ``isValid()`` first calls
208208
``isSubmitted()``. But without this, the flow doesn't read well as it *looks*
209209
like the form is *always* processed (even on the GET request).
210+
211+
----
212+
213+
Next: :doc:`/best_practices/i18n`

best_practices/i18n.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,8 @@ English in the application would be:
9393
</file>
9494
</xliff>
9595
96+
----
97+
98+
Next: :doc:`/best_practices/security`
99+
96100
.. _`JMSTranslationBundle`: https://github.com/schmittjoh/JMSTranslationBundle

best_practices/introduction.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,5 +102,9 @@ practices**. The reasons for not doing it are various:
102102
* The amount of work spent on this could be better dedicated to improving
103103
your tests or adding features that provide real value to the end users.
104104

105+
----
106+
107+
Next: :doc:`/best_practices/creating-the-project`
108+
105109
.. _`Fabien Potencier`: https://connect.sensiolabs.com/profile/fabpot
106110
.. _`download and install`: https://symfony.com/download

best_practices/security.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,10 @@ If your company uses a user login method not supported by Symfony, you can
398398
develop :doc:`your own user provider </security/custom_provider>` and
399399
:doc:`your own authentication provider </security/custom_authentication_provider>`.
400400

401+
----
402+
403+
Next: :doc:`/best_practices/web-assets`
404+
401405
.. _`ParamConverter`: https://symfony.com/doc/current/bundles/SensioFrameworkExtraBundle/annotations/converters.html
402406
.. _`@Security annotation`: https://symfony.com/doc/current/bundles/SensioFrameworkExtraBundle/annotations/security.html
403407
.. _`FOSUserBundle`: https://github.com/FriendsOfSymfony/FOSUserBundle

best_practices/templates.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,5 +168,9 @@ name is irrelevant because you never use it in your own code):
168168
tags:
169169
- { name: twig.extension }
170170
171+
----
172+
173+
Next: :doc:`/best_practices/forms`
174+
171175
.. _`Twig`: http://twig.sensiolabs.org/
172176
.. _`Parsedown`: http://parsedown.org/

best_practices/web-assets.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,8 @@ with Assetic to reduce their size before serving them to the user. Check out
9595
the `official Assetic documentation`_ to learn more about all the available
9696
features.
9797

98+
----
99+
100+
Next: :doc:`/best_practices/tests`
101+
98102
.. _`official Assetic documentation`: https://github.com/kriswallsmith/assetic

0 commit comments

Comments
 (0)