Skip to content

Commit 63ee83e

Browse files
committed
Merge branch '2.7' into 2.8
2 parents 5928110 + f69cdb8 commit 63ee83e

File tree

5 files changed

+75
-8
lines changed

5 files changed

+75
-8
lines changed

Diff for: book/controller.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ to ``$name``. Just make sure they the name of the placeholder is the
260260
same as the name of the argument variable.
261261

262262
Take the following more-interesting example, where the controller has two
263-
arguments::
263+
arguments:
264264

265265
.. configuration-block::
266266

@@ -681,7 +681,7 @@ read any flash messages from the session:
681681

682682
.. code-block:: html+twig
683683

684-
{% for flash_message in app.session.flashbag.get('notice') %}
684+
{% for flash_message in app.session.flashBag.get('notice') %}
685685
<div class="flash-notice">
686686
{{ flash_message }}
687687
</div>
@@ -714,7 +714,7 @@ The Request and Response Object
714714
-------------------------------
715715

716716
As mentioned :ref:`earlier <book-controller-request-argument>`, the framework will
717-
pass the ``Request`` object to any controller argument taht is type-hinted with
717+
pass the ``Request`` object to any controller argument that is type-hinted with
718718
the ``Request`` class::
719719

720720
use Symfony\Component\HttpFoundation\Request;

Diff for: changelog.rst

+60
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,66 @@ documentation.
1313
Do you also want to participate in the Symfony Documentation? Take a look
1414
at the ":doc:`/contributing/documentation/overview`" article.
1515

16+
March, 2016
17+
-----------
18+
19+
New Documentation
20+
~~~~~~~~~~~~~~~~~
21+
22+
* `#6282 <https://github.com/symfony/symfony-docs/pull/6282>`_ [Form] fix ``choice_label`` values (HeahDude)
23+
* `#5894 <https://github.com/symfony/symfony-docs/pull/5894>`_ [WIP] Added an article to explain how to upgrade third-party bundles to Symfony 3 (javiereguiluz)
24+
* `#6273 <https://github.com/symfony/symfony-docs/pull/6273>`_ [PHPUnit bridge] Add documentation for the component (theofidry)
25+
* `#6291 <https://github.com/symfony/symfony-docs/pull/6291>`_ fortrabbit deployment guide + index listing (ostark)
26+
27+
Fixed Documentation
28+
~~~~~~~~~~~~~~~~~~~
29+
30+
* `#6366 <https://github.com/symfony/symfony-docs/pull/6366>`_ Removed server:stop code block for 2.3 (theyoux)
31+
* `#6347 <https://github.com/symfony/symfony-docs/pull/6347>`_ Add a note about enabling DebugBundle to use VarDumper inside Symfony (martijn80, javiereguiluz)
32+
* `#6320 <https://github.com/symfony/symfony-docs/pull/6320>`_ Fixed typo in path (timhovius)
33+
* `#6334 <https://github.com/symfony/symfony-docs/pull/6334>`_ Fixed yaml configuration of app.exception_controller (AAstakhov)
34+
* `#6315 <https://github.com/symfony/symfony-docs/pull/6315>`_ Remove third parameter from createFormBuilder call (Hocdoc)
35+
36+
Minor Documentation Changes
37+
~~~~~~~~~~~~~~~~~~~~~~~~~~~
38+
39+
* `#6404 <https://github.com/symfony/symfony-docs/pull/6404>`_ fixed a typo (RickieL)
40+
* `#6411 <https://github.com/symfony/symfony-docs/pull/6411>`_ Fixed a typo in configuration-block (VarunAgw)
41+
* `#6414 <https://github.com/symfony/symfony-docs/pull/6414>`_ stick to Sphinx 1.3.x for the moment (xabbuh)
42+
* `#6399 <https://github.com/symfony/symfony-docs/pull/6399>`_ Fixed wrong code examples for Isbn constraint (AAstakhov)
43+
* `#6397 <https://github.com/symfony/symfony-docs/pull/6397>`_ Fix typo in SwitchUserListener file name (luxifer)
44+
* `#6382 <https://github.com/symfony/symfony-docs/pull/6382>`_ unused use instructions (bshevchenko)
45+
* `#6365 <https://github.com/symfony/symfony-docs/pull/6365>`_ Removed the PR table example (this is now included by GitHub template) (javiereguiluz)
46+
* `#6363 <https://github.com/symfony/symfony-docs/pull/6363>`_ Removed info about reducing visibility for private (AAstakhov)
47+
* `#6362 <https://github.com/symfony/symfony-docs/pull/6362>`_ [book] Updated link to Translatable Extension (AAstakhov)
48+
* `#6336 <https://github.com/symfony/symfony-docs/pull/6336>`_ Added minor clarification (ThomasLandauer)
49+
* `#6303 <https://github.com/symfony/symfony-docs/pull/6303>`_ Tweaked the Symfony Releases page (javiereguiluz)
50+
* `#6360 <https://github.com/symfony/symfony-docs/pull/6360>`_ Editing the Doctrine section to improve accuracy and readability (natechicago)
51+
* `#6352 <https://github.com/symfony/symfony-docs/pull/6352>`_ [book] controller ch review, part 3 (Talita Kocjan Zager)
52+
* `#6351 <https://github.com/symfony/symfony-docs/pull/6351>`_ [book] controller ch review, part 2 (Talita Kocjan Zager)
53+
* `#6349 <https://github.com/symfony/symfony-docs/pull/6349>`_ [book] controller ch review, part 1 (Talita Kocjan Zager)
54+
* `#6369 <https://github.com/symfony/symfony-docs/pull/6369>`_ Minor corrections (sfdumi)
55+
* `#6370 <https://github.com/symfony/symfony-docs/pull/6370>`_ Fixed typo (tabbi89)
56+
* `#6371 <https://github.com/symfony/symfony-docs/pull/6371>`_ Fix escaping of backtick inside double back-quotes (guilliamxavier)
57+
* `#6364 <https://github.com/symfony/symfony-docs/pull/6364>`_ [reference] [constraints] added missing colon character for Image constraint documentation in YAML format. (hhamon)
58+
* `#6345 <https://github.com/symfony/symfony-docs/pull/6345>`_ Remove link-local IPv6 address (snoek09)
59+
* `#6219 <https://github.com/symfony/symfony-docs/pull/6219>`_ Point that route parameters are also Request attributes (sfdumi)
60+
* `#6348 <https://github.com/symfony/symfony-docs/pull/6348>`_ [best practices] mostly typos (Talita Kocjan Zager)
61+
* `#6275 <https://github.com/symfony/symfony-docs/pull/6275>`_ [quick tour] mostly typos (Talita Kocjan Zager)
62+
* `#6305 <https://github.com/symfony/symfony-docs/pull/6305>`_ Mention IvoryCKEditorBundle in the Symfony Forms doc (javiereguiluz)
63+
* `#6331 <https://github.com/symfony/symfony-docs/pull/6331>`_ Rename DunglasApiBundle to ApiPlatform (sroze)
64+
* `#6328 <https://github.com/symfony/symfony-docs/pull/6328>`_ Update extension.rst - added caution box for people trying to remove the default file with services definitions (Pavel Jurecka)
65+
* `#6343 <https://github.com/symfony/symfony-docs/pull/6343>`_ Replace XLIFF number ids by strings (Triiistan)
66+
* `#6344 <https://github.com/symfony/symfony-docs/pull/6344>`_ Altered single / multiple inheritance sentence (outspaced)
67+
* `#6330 <https://github.com/symfony/symfony-docs/pull/6330>`_ [Form] reorder EntityType options (HeahDude)
68+
* `#6337 <https://github.com/symfony/symfony-docs/pull/6337>`_ Fix configuration.rst typo (gong023)
69+
* `#6295 <https://github.com/symfony/symfony-docs/pull/6295>`_ Update tools.rst (andrewtch)
70+
* `#6325 <https://github.com/symfony/symfony-docs/pull/6325>`_ Minor error (ThomasLandauer)
71+
* `#6311 <https://github.com/symfony/symfony-docs/pull/6311>`_ Improved TwigExtension to show default values and optional arguments (javiereguiluz)
72+
* `#6267 <https://github.com/symfony/symfony-docs/pull/6267>`_ [Form] fix 'data_class' option in EntityType (HeahDude)
73+
* `#6281 <https://github.com/symfony/symfony-docs/pull/6281>`_ Change isValid to isSubmitted. (mustafaaloko)
74+
75+
1676
February, 2016
1777
--------------
1878

Diff for: cookbook/form/direct_submit.rst

+7
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,13 @@ method, pass the submitted data directly to
8484

8585
$form->get('firstName')->submit('Fabien');
8686

87+
.. tip::
88+
89+
When submitting a form via a "PATCH" request, you may want to update only a few
90+
submitted fields. To achieve this, you may pass an optional second boolean
91+
parameter to ``submit()``. Passing ``false`` will remove any missing fields
92+
within the form object. Otherwise, the mising fields will be set to ``null``.
93+
8794
.. _cookbook-form-submit-request:
8895

8996
Passing a Request to Form::submit() (Deprecated)

Diff for: cookbook/session/avoid_session_start.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,22 @@ that a session is *always* started:
1515

1616
.. code-block:: html+twig
1717

18-
{% for flashMessage in app.session.flashbag.get('notice') %}
18+
{% for flashMessage in app.session.flashBag.get('notice') %}
1919
<div class="flash-notice">
2020
{{ flashMessage }}
2121
</div>
2222
{% endfor %}
2323

2424
Even if the user is not logged in and even if you haven't created any flash messages,
25-
just calling the ``get()`` (or even ``has()``) method of the ``flashbag`` will
25+
just calling the ``get()`` (or even ``has()``) method of the ``flashBag`` will
2626
start a session. This may hurt your application performance because all users will
2727
receive a session cookie. To avoid this behavior, add a check before trying to
2828
access the flash messages:
2929

3030
.. code-block:: html+twig
3131

3232
{% if app.request.hasPreviousSession %}
33-
{% for flashMessage in app.session.flashbag.get('notice') %}
33+
{% for flashMessage in app.session.flashBag.get('notice') %}
3434
<div class="flash-notice">
3535
{{ flashMessage }}
3636
</div>

Diff for: quick_tour/the_controller.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ And you can display the flash message in the template like this:
331331

332332
.. code-block:: html+twig
333333

334-
{% for flashMessage in app.session.flashbag.get('notice') %}
334+
{% for flashMessage in app.session.flashBag.get('notice') %}
335335
<div class="flash-notice">
336336
{{ flashMessage }}
337337
</div>
@@ -344,4 +344,4 @@ That's all there is to it and I'm not even sure you'll have spent the full
344344
10 minutes. You were briefly introduced to bundles in the first part and
345345
all the features you've learned about so far are part of the core FrameworkBundle.
346346
But thanks to bundles, everything in Symfony can be extended or replaced.
347-
That's the topic of the :doc:`next part of this tutorial <the_architecture>`.
347+
That's the topic of the :doc:`next part of this tutorial <the_architecture>`.

0 commit comments

Comments
 (0)