Skip to content

Commit 7eaf928

Browse files
committed
Merge branch '2.8'
2 parents 26ca438 + 84e2495 commit 7eaf928

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+501
-480
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
/_build
2-
/_exts
32
*.pyc

best_practices/forms.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ makes them easier to re-use later.
8585

8686
Add buttons in the templates, not in the form classes or the controllers.
8787

88-
Since Symfony 2.5, you can add buttons as fields on your form. This is a nice
88+
Since Symfony 2.3, you can add buttons as fields on your form. This is a nice
8989
way to simplify the template that renders your form. But if you add the buttons
9090
directly in your form class, this would effectively limit the scope of that form:
9191

book/doctrine.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -766,8 +766,10 @@ covered later), group, etc. For more information, see the official
766766
Querying for Objects Using Doctrine's Query Builder
767767
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
768768

769-
Instead of writing a DQL string, you can alternatively use a helpful object called
770-
the ``QueryBuilder`` to build that string for you::
769+
Instead of writing a DQL string, you can use a helpful object called the
770+
``QueryBuilder`` to build that string for you. This is useful when the actual query
771+
depends on dynamic conditions, as your code soon becomes hard to read with
772+
DQL as you start to concatenate strings::
771773

772774
$repository = $this->getDoctrine()
773775
->getRepository('AppBundle:Product');

book/page_creation.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ at the end:
181181
}
182182
183183
// ...
184-
}
184+
}
185185
186186
.. code-block:: yaml
187187
@@ -272,7 +272,7 @@ easy, powerful and actually quite fun.
272272
So far, ``LuckyController`` doesn't extend any base class. The easiest way
273273
to use Twig - or many other tools in Symfony - is to extend Symfony's base
274274
:class:`Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller` class::
275-
275+
276276
// src/AppBundle/Controller/LuckyController.php
277277
// ...
278278

@@ -566,9 +566,9 @@ Ok, time to finish mastering the fundamentals by reading these chapters:
566566
* :doc:`/book/routing`
567567
* :doc:`/book/templating`
568568

569-
Then, learn about Symfony's :doc:`service container </book/service_container>`
569+
Then, in the :doc:`Symfony Book </book/index>`, learn about the :doc:`service container </book/service_container>`,
570570
the :doc:`form system </book/forms>`, using :doc:`Doctrine </book/doctrine>`
571-
if you need to query a database and more. in the :doc:`Symfony Book </book/index>`.
571+
(if you need to query a database) and more!
572572

573573
There's also a :doc:`Cookbook </cookbook/index>` *packed* with more advanced
574574
"how to" articles to solve *a lot* of problems.

book/templating.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1191,7 +1191,7 @@ is a :class:`Symfony\\Bundle\\FrameworkBundle\\Templating\\GlobalVariables`
11911191
instance which will give you access to some application specific variables
11921192
automatically:
11931193

1194-
``app.security``
1194+
``app.security`` (deprecated as of 2.6)
11951195
The security context.
11961196
``app.user``
11971197
The current user object.

book/testing.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,10 @@ expression or a CSS selector, then use the client to click on it. For example::
196196
$link = $crawler
197197
->filter('a:contains("Greet")') // find all links with the text "Greet"
198198
->eq(1) // select the second link in the list
199-
->link() // and click it
199+
->link()
200200
;
201-
201+
202+
// and click it
202203
$crawler = $client->click($link);
203204

204205
Submitting a form is very similar: select a form button, optionally override

components/config/definition.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ All options can be documented using the
295295
method.
296296

297297
The info will be printed as a comment when dumping the configuration tree
298-
with the ``config:dump`` command.
298+
with the ``config:dump-reference`` command.
299299

300300
.. versionadded:: 2.6
301301
Since Symfony 2.6, the info will also be added to the exception message

cookbook/form/dynamic_form_modification.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ it with :ref:`dic-tags-form-type`.
395395
<!-- app/config/config.xml -->
396396
<services>
397397
<service id="app.form.friend_message" class="AppBundle\Form\Type\FriendMessageFormType">
398-
<argument type="service" id="security.context" />
398+
<argument type="service" id="security.token_storage" />
399399
<tag name="form.type" alias="friend_message" />
400400
</service>
401401
</services>

cookbook/logging/channels_handlers.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ the channel).
1515
.. note::
1616

1717
Each channel corresponds to a logger service (``monolog.logger.XXX``)
18-
in the container (use the ``container:debug`` command to see a full list)
18+
in the container (use the ``debug:container`` command to see a full list)
1919
and those are injected into different services.
2020

2121
.. _logging-channel-handler:

reference/constraints/All.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ entry in that array:
2525

2626
.. code-block:: php-annotations
2727
28-
// src/Acme/UserBundle/Entity/User.php
29-
namespace Acme\UserBundle\Entity;
28+
// src/AppBundle/Entity/User.php
29+
namespace AppBundle\Entity;
3030
3131
use Symfony\Component\Validator\Constraints as Assert;
3232
@@ -43,8 +43,8 @@ entry in that array:
4343
4444
.. code-block:: yaml
4545
46-
# src/Acme/UserBundle/Resources/config/validation.yml
47-
Acme\UserBundle\Entity\User:
46+
# src/AppBundle/Resources/config/validation.yml
47+
AppBundle\Entity\User:
4848
properties:
4949
favoriteColors:
5050
- All:
@@ -54,13 +54,13 @@ entry in that array:
5454
5555
.. code-block:: xml
5656
57-
<!-- src/Acme/UserBundle/Resources/config/validation.xml -->
57+
<!-- src/AppBundle/Resources/config/validation.xml -->
5858
<?xml version="1.0" encoding="UTF-8" ?>
5959
<constraint-mapping xmlns="http://symfony.com/schema/dic/constraint-mapping"
6060
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6161
xsi:schemaLocation="http://symfony.com/schema/dic/constraint-mapping http://symfony.com/schema/dic/constraint-mapping/constraint-mapping-1.0.xsd">
6262
63-
<class name="Acme\UserBundle\Entity\User">
63+
<class name="AppBundle\Entity\User">
6464
<property name="favoriteColors">
6565
<constraint name="All">
6666
<option name="constraints">
@@ -76,8 +76,8 @@ entry in that array:
7676
7777
.. code-block:: php
7878
79-
// src/Acme/UserBundle/Entity/User.php
80-
namespace Acme\UserBundle\Entity;
79+
// src/AppBundle/Entity/User.php
80+
namespace AppBundle\Entity;
8181
8282
use Symfony\Component\Validator\Mapping\ClassMetadata;
8383
use Symfony\Component\Validator\Constraints as Assert;

0 commit comments

Comments
 (0)