Skip to content

Commit 8a91f15

Browse files
committed
Merge branch '2.3'
2 parents 02d6a71 + 6f23f9d commit 8a91f15

File tree

9 files changed

+22
-14
lines changed

9 files changed

+22
-14
lines changed

book/service_container.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ Using references is a very powerful tool that allows you to create independent s
658658
classes with well-defined dependencies. In this example, the ``newsletter_manager``
659659
service needs the ``my_mailer`` service in order to function. When you define
660660
this dependency in the service container, the container takes care of all
661-
the work of instantiating the objects.
661+
the work of instantiating the classes.
662662

663663
Optional Dependencies: Setter Injection
664664
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

book/templating.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -685,8 +685,8 @@ tags:
685685

686686
.. code-block:: jinja
687687
688-
{{ render_hinclude(controller('...')) %}
689-
{{ render_hinclude(url('...')) %}
688+
{{ render_hinclude(controller('...')) }}
689+
{{ render_hinclude(url('...')) }}
690690
691691
.. code-block:: php
692692

components/class_loader/cache_class_loader.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Introduction
1313

1414
Finding the file for a particular class can be an expensive task. Luckily,
1515
the Class Loader Component comes with two classes to cache the mapping
16-
from a class to its containing file. Both the :class:`Symfonfy\\Component\\ClassLoader\\ApcClassLoader`
16+
from a class to its containing file. Both the :class:`Symfony\\Component\\ClassLoader\\ApcClassLoader`
1717
and the :class:`Symfony\\Component\\ClassLoader\\XcacheClassLoader` wrap
1818
around an object which implements a ``findFile()`` method to find the file
1919
for a class.

components/dependency_injection/factories.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ as well as calling methods and setting parameters. Sometimes, however, this
1010
will not provide you with everything you need to construct your objects.
1111
For this situation, you can use a factory to create the object and tell the
1212
service container to call a method on the factory rather than directly instantiating
13-
the object.
13+
the class.
1414

1515
Suppose you have a factory that configures and returns a new NewsletterManager
1616
object::

components/dom_crawler.rst

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -230,13 +230,8 @@ and :phpclass:`DOMNode` objects:
230230

231231
The ``html`` method is new in Symfony 2.3.
232232

233-
Form and Link support
234-
~~~~~~~~~~~~~~~~~~~~~
235-
236-
Special treatment is given to links and forms inside the DOM tree.
237-
238233
Links
239-
.....
234+
~~~~~
240235

241236
To find a link by name (or a clickable image by its ``alt`` attribute), use
242237
the ``selectLink`` method on an existing crawler. This returns a Crawler
@@ -264,7 +259,7 @@ methods to get more information about the selected link itself::
264259
URI that you can act on.
265260

266261
Forms
267-
.....
262+
~~~~~
268263

269264
Special treatment is also given to forms. A ``selectButton()`` method is
270265
available on the Crawler which returns another Crawler that matches a button

cookbook/console/sending_emails.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,16 @@ commands, emails are not sent automatically. You must take care of flushing
9797
the queue yourself. Use the following code to send emails inside your
9898
console command::
9999

100+
$message = new \Swift_Message();
101+
102+
// ... prepare the message
103+
100104
$container = $this->getContainer();
101105
$mailer = $container->get('mailer');
106+
107+
$mailer->send($message);
108+
109+
// now manually flush the queue
102110
$spool = $mailer->getTransport()->getSpool();
103111
$transport = $container->get('swiftmailer.transport.real');
104112

cookbook/form/use_empty_data.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ that constructor with no arguments::
6161

6262
You can instantiate your class however you want. In this example, we pass
6363
some dependency into the ``BlogType`` when we instantiate it, then use that
64-
to instantiate the ``Blog`` object. The point is, you can set ``empty_data``
64+
to instantiate the ``Blog`` class. The point is, you can set ``empty_data``
6565
to the exact "new" object that you want to use.
6666

6767
Option 2: Provide a Closure

cookbook/service_container/scopes.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,11 @@ your code. This should also be taken into account when declaring your service:
216216
->setSynthetic(true)
217217
->setSynchronized(true);
218218
219+
.. caution::
220+
221+
The service using the synchronized service will need to be public in order
222+
have its setter called when the scope changes.
223+
219224
.. _changing-service-scope:
220225

221226
Changing the Scope of your Service

reference/forms/types/date.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ a string, a timestamp or an array. As long as the `input`_ option is set
1212
correctly, the field will take care of all of the details.
1313

1414
The field can be rendered as a single text box, three text boxes (month,
15-
day, and year) or three select boxes (see the `widget_` option).
15+
day, and year) or three select boxes (see the `widget`_ option).
1616

1717
+----------------------+-----------------------------------------------------------------------------+
1818
| Underlying Data Type | can be ``DateTime``, string, timestamp, or array (see the ``input`` option) |

0 commit comments

Comments
 (0)