Skip to content

Commit 0ef4751

Browse files
committed
Merge branch '2.3' into 2.4
Conflicts: book/forms.rst book/translation.rst changelog.rst components/config/definition.rst components/filesystem.rst components/stopwatch.rst components/translation/introduction.rst reference/dic_tags.rst reference/forms/types/options/disabled.rst.inc reference/forms/types/options/error_mapping.rst.inc reference/forms/types/options/property_path.rst.inc
2 parents 89d0dae + e58e39f commit 0ef4751

Some content is hidden

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

73 files changed

+185
-167
lines changed

book/forms.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,10 @@ controller::
232232
}
233233

234234
.. versionadded:: 2.3
235-
The :method:`Symfony\\Component\\Form\\FormInterface::handleRequest` method was
236-
added in Symfony 2.3. Previously, the ``$request`` was passed to the
237-
``submit`` method - a strategy which is deprecated and will be removed
238-
in Symfony 3.0. For details on that method, see :ref:`cookbook-form-submit-request`.
235+
The :method:`Symfony\\Component\\Form\\FormInterface::handleRequest` method
236+
was introduced in Symfony 2.3. Previously, the ``$request`` was passed
237+
to the ``submit`` method - a strategy which is deprecated and will be
238+
removed in Symfony 3.0. For details on that method, see :ref:`cookbook-form-submit-request`.
239239

240240
This controller follows a common pattern for handling forms, and has three
241241
possible paths:

book/page_creation.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1061,5 +1061,5 @@ to rapidly develop applications.
10611061
.. _`Twig`: http://twig.sensiolabs.org
10621062
.. _`third-party bundles`: http://knpbundles.com
10631063
.. _`Symfony Standard Edition`: http://symfony.com/download
1064-
.. _`Apache's DirectoryIndex documentation`: http://httpd.apache.org/docs/2.0/mod/mod_dir.html
1064+
.. _`Apache's DirectoryIndex documentation`: http://httpd.apache.org/docs/current/mod/mod_dir.html
10651065
.. _`Nginx HttpCoreModule location documentation`: http://wiki.nginx.org/HttpCoreModule#location

book/routing.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ The route is simple:
6969
return $collection;
7070
7171
.. versionadded:: 2.2
72-
The ``path`` option is new in Symfony 2.2, ``pattern`` is used in older
73-
versions.
72+
The ``path`` option was introduced in Symfony 2.2, ``pattern`` is used
73+
in older versions.
7474

7575
The path defined by the ``blog_show`` route acts like ``/blog/*`` where
7676
the wildcard is given the name ``slug``. For the URL ``/blog/my-blog-post``,
@@ -705,7 +705,7 @@ be accomplished with the following route configuration:
705705
return $collection;
706706
707707
.. versionadded:: 2.2
708-
The ``methods`` option is added in Symfony 2.2. Use the ``_method``
708+
The ``methods`` option was introduced in Symfony 2.2. Use the ``_method``
709709
requirement in older versions.
710710

711711
Despite the fact that these two routes have identical paths (``/contact``),

book/security.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -2061,7 +2061,8 @@ Utilities
20612061
---------
20622062

20632063
.. versionadded:: 2.2
2064-
The ``StringUtils`` and ``SecureRandom`` classes were added in Symfony 2.2
2064+
The ``StringUtils`` and ``SecureRandom`` classes were introduced in Symfony
2065+
2.2
20652066

20662067
The Symfony Security component comes with a collection of nice utilities related
20672068
to security. These utilities are used by Symfony, but you should also use

book/testing.rst

+3-2
Original file line numberDiff line numberDiff line change
@@ -415,8 +415,9 @@ Accessing internal Objects
415415
~~~~~~~~~~~~~~~~~~~~~~~~~~
416416

417417
.. versionadded:: 2.3
418-
The ``getInternalRequest()`` and ``getInternalResponse()`` method were
419-
added in Symfony 2.3.
418+
The :method:`Symfony\\Component\\BrowserKit\\Client::getInternalRequest`
419+
and :method:`Symfony\\Component\\BrowserKit\\Client::getInternalResponse`
420+
methods were introduced in Symfony 2.3.
420421

421422
If you use the client to test your application, you might want to access the
422423
client's internal objects::

changelog.rst

+4-2
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,9 @@ New Documentation
177177
Fixed Documentation
178178
~~~~~~~~~~~~~~~~~~~
179179

180-
- `adcbb5d <https://github.com./symfony/symfony-docs/commit/adcbb5de6c3b8d6ba59e619315ef13fe45318494>`_ #3615 Fixes to cookbook/doctrine/registration_form.rst (Crushnaut)
181180
- `5c4336a <https://github.com./symfony/symfony-docs/commit/5c4336a325ec98bc0eb7ef35baf86bcb9628e490>`_ #3570 Callback: [Validator, validate] expects validate to be static (nixilla)
181+
- `5c367b4 <https://github.com./symfony/symfony-docs/commit/5c367b4dfa5c3adc8993702b1ae8f686c74419c8>`_ #3517 Fixed OptionsResolver component docs (WouterJ)
182+
- `adcbb5d <https://github.com./symfony/symfony-docs/commit/adcbb5de6c3b8d6ba59e619315ef13fe45318494>`_ #3615 Fixes to cookbook/doctrine/registration_form.rst (Crushnaut)
182183
- `a21fb26 <https://github.com./symfony/symfony-docs/commit/a21fb260978eaa27b1cb94fccb0bd0af71b6df7f>`_ #3559 Remove reference to copying parameters.yml from Git cookbook (pwaring)
183184
- `de71a51 <https://github.com./symfony/symfony-docs/commit/de71a5143f6d30fff7e890cea250d047a63916d2>`_ #3551 [Cookbook][Dynamic Form Modification] Fix sample code (rybakit)
184185
- `143db2f <https://github.com./symfony/symfony-docs/commit/143db2f75caa9ef6d7e1c230d0ac9d59c17fde5f>`_ #3550 Update introduction.rst (taavit)
@@ -239,6 +240,7 @@ New Documentation
239240

240241
- `d52f3f8 <https://github.com./symfony/symfony-docs/commit/d52f3f8a146356e9e114474e820f8ec6ac5f2374>`_ #3454 [Security] Add host option (ghostika)
241242
- `6b3c424 <https://github.com./symfony/symfony-docs/commit/6b3c424034fec441a32d8305600c1c26936b8f1e>`_ #3428 Translation - Added info about JsonFileLoader added in 2.4 (singles)
243+
No changes
242244

243245
Fixed Documentation
244246
~~~~~~~~~~~~~~~~~~~
@@ -264,8 +266,8 @@ Fixed Documentation
264266
Minor Documentation Changes
265267
~~~~~~~~~~~~~~~~~~~~~~~~~~~
266268

267-
- `f285d93 <https://github.com./symfony/symfony-docs/commit/f285d930377d8cbaedccc3ad46853fa72ee6439d>`_ #3451 some language tweaks (AE, third-person perspective) (xabbuh)
268269
- `b9bbe5d <https://github.com./symfony/symfony-docs/commit/b9bbe5d5f8cb427f1a52e839f23a0f286da1a010>`_ #3499 Fix YAML syntax highlight + remove trailing whitespace (ifdattic)
270+
- `f285d93 <https://github.com./symfony/symfony-docs/commit/f285d930377d8cbaedccc3ad46853fa72ee6439d>`_ #3451 some language tweaks (AE, third-person perspective) (xabbuh)
269271
- `2b7e0f6 <https://github.com./symfony/symfony-docs/commit/2b7e0f6f2f9982e600918f447852a6f4c60966a1>`_ #3497 Fix highlighting (WouterJ)
270272
- `a535ae0 <https://github.com./symfony/symfony-docs/commit/a535ae0383a2a6715021681980877b0205dc3281>`_ #3471 Fixed `````versionadded````` inconsistencies in Symfony 2.3 (danielcsgomes)
271273
- `f077a8e <https://github.com./symfony/symfony-docs/commit/f077a8e71c4973e7775db8c9fb548a0866d21131>`_ #3465 change wording in versionadded example to be consistent with what we use... (xabbuh)

components/config/caching.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. index::
22
single: Config; Caching based on resources
33

4-
Caching based on resources
4+
Caching Based on Resources
55
==========================
66

77
When all configuration resources are loaded, you may want to process the configuration

components/config/definition.rst

+18-17
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
.. index::
22
single: Config; Defining and processing configuration values
33

4-
Defining and processing configuration values
4+
Defining and Processing Configuration Values
55
============================================
66

7-
Validating configuration values
7+
Validating Configuration Values
88
-------------------------------
99

1010
After loading configuration values from all kinds of resources, the values
@@ -38,7 +38,7 @@ they are when first encountered. Also, some keys are only available when
3838
another key has a specific value (in the sample configuration above: the
3939
``memory`` key only makes sense when the ``driver`` is ``sqlite``).
4040

41-
Defining a hierarchy of configuration values using the TreeBuilder
41+
Defining a Hierarchy of Configuration Values Using the TreeBuilder
4242
------------------------------------------------------------------
4343

4444
All the rules concerning configuration values can be defined using the
@@ -66,10 +66,10 @@ should be returned from a custom ``Configuration`` class which implements the
6666
}
6767
}
6868

69-
Adding node definitions to the tree
69+
Adding Node Definitions to the Tree
7070
-----------------------------------
7171

72-
Variable nodes
72+
Variable Nodes
7373
~~~~~~~~~~~~~~
7474

7575
A tree contains node definitions which can be laid out in a semantic way.
@@ -91,7 +91,7 @@ The root node itself is an array node, and has children, like the boolean
9191
node ``auto_connect`` and the scalar node ``default_connection``. In general:
9292
after defining a node, a call to ``end()`` takes you one step up in the hierarchy.
9393

94-
Node type
94+
Node Type
9595
~~~~~~~~~
9696

9797
It is possible to validate the type of a provided value by using the appropriate
@@ -108,11 +108,11 @@ node definition. Node type are available for:
108108
and are created with ``node($name, $type)`` or their associated shortcut
109109
``xxxxNode($name)`` method.
110110

111-
Numeric node constraints
111+
Numeric Node Constraints
112112
~~~~~~~~~~~~~~~~~~~~~~~~
113113

114114
.. versionadded:: 2.2
115-
The numeric (float and integer) nodes are new in 2.2
115+
The numeric (float and integer) nodes were introduced in Symfony 2.2.
116116

117117
Numeric nodes (float and integer) provide two extra constraints -
118118
:method:`Symfony\\Component\\Config\\Definition\\Builder::min` and
@@ -133,7 +133,7 @@ allowing to validate the value::
133133
->end()
134134
;
135135

136-
Enum nodes
136+
Enum Nodes
137137
~~~~~~~~~~
138138

139139
Enum nodes provide a constraint to match the given input against a set of
@@ -149,7 +149,7 @@ values::
149149

150150
This will restrict the ``gender`` option to be either ``male`` or ``female``.
151151

152-
Array nodes
152+
Array Nodes
153153
~~~~~~~~~~~
154154

155155
It is possible to add a deeper level to the hierarchy, by adding an array
@@ -190,7 +190,7 @@ inside the current node. According to the prototype definition in the example
190190
above, it is possible to have multiple connection arrays (containing a ``driver``,
191191
``host``, etc.).
192192

193-
Array node options
193+
Array Node Options
194194
~~~~~~~~~~~~~~~~~~
195195

196196
Before defining the children of an array node, you can provide options like:
@@ -233,7 +233,7 @@ In XML, each ``parameters`` node would have a ``name`` attribute (along with
233233
the final array. The ``useAttributeAsKey`` is useful for normalizing how
234234
arrays are specified between different formats like XML and YAML.
235235

236-
Default and required values
236+
Default and required Values
237237
---------------------------
238238

239239
For all node types, it is possible to define default values and replacement
@@ -288,7 +288,8 @@ Optional Sections
288288
-----------------
289289

290290
.. versionadded:: 2.2
291-
The ``canBeEnabled`` and ``canBeDisabled`` methods are new in Symfony 2.2
291+
The ``canBeEnabled`` and ``canBeDisabled`` methods were introduced in
292+
Symfony 2.2.
292293

293294
If you have entire sections which are optional and can be enabled/disabled,
294295
you can take advantage of the shortcut
@@ -313,7 +314,7 @@ you can take advantage of the shortcut
313314
The ``canBeDisabled`` method looks about the same except that the section
314315
would be enabled by default.
315316

316-
Merging options
317+
Merging Options
317318
---------------
318319

319320
Extra options concerning the merge process may be provided. For arrays:
@@ -327,7 +328,7 @@ For all nodes:
327328
``cannotBeOverwritten()``
328329
don’t let other configuration arrays overwrite an existing value for this node
329330

330-
Appending sections
331+
Appending Sections
331332
------------------
332333

333334
If you have a complex configuration to validate then the tree can grow to
@@ -499,7 +500,7 @@ By changing a string value into an associative array with ``name`` as the key::
499500
->end()
500501
;
501502

502-
Validation rules
503+
Validation Rules
503504
----------------
504505

505506
More advanced validation rules can be provided using the
@@ -545,7 +546,7 @@ Usually, "then" is a closure. Its return value will be used as a new value
545546
for the node, instead
546547
of the node's original value.
547548

548-
Processing configuration values
549+
Processing Configuration Values
549550
-------------------------------
550551

551552
The :class:`Symfony\\Component\\Config\\Definition\\Processor` uses the tree

components/config/resources.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
.. index::
22
single: Config; Loading resources
33

4-
Loading resources
4+
Loading Resources
55
=================
66

7-
Locating resources
7+
Locating Resources
88
------------------
99

1010
Loading the configuration normally starts with a search for resources – in
@@ -24,7 +24,7 @@ look in this directory first. The third argument indicates whether or not the
2424
locator should return the first file it has found, or an array containing
2525
all matches.
2626

27-
Resource loaders
27+
Resource Loaders
2828
----------------
2929

3030
For each type of resource (YAML, XML, annotation, etc.) a loader must be defined.
@@ -57,7 +57,7 @@ class, which allows for recursively importing other resources::
5757
}
5858
}
5959

60-
Finding the right loader
60+
Finding the right Loader
6161
------------------------
6262

6363
The :class:`Symfony\\Component\\Config\\Loader\\LoaderResolver` receives as

components/console/events.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Using Events
55
============
66

77
.. versionadded:: 2.3
8-
Console events were added in Symfony 2.3.
8+
Console events were introduced in Symfony 2.3.
99

1010
The Application class of the Console component allows you to optionally hook
1111
into the lifecycle of a console application via events. Instead of reinventing
@@ -51,7 +51,7 @@ dispatched. Listeners receive a
5151
$application = $command->getApplication();
5252
});
5353

54-
The ``ConsoleEvents::TERMINATE`` event
54+
The ``ConsoleEvents::TERMINATE`` Event
5555
--------------------------------------
5656

5757
**Typical Purposes**: To perform some cleanup actions after the command has
@@ -89,7 +89,7 @@ Listeners receive a
8989
It is then dispatched just before the ``ConsoleEvents::EXCEPTION`` event.
9090
The exit code received in this case is the exception code.
9191

92-
The ``ConsoleEvents::EXCEPTION`` event
92+
The ``ConsoleEvents::EXCEPTION`` Event
9393
--------------------------------------
9494

9595
**Typical Purposes**: Handle exceptions thrown during the execution of a

components/console/helpers/dialoghelper.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ All the methods inside the Dialog Helper have an
1616
argument, the question as the second argument and the default value as the last
1717
argument.
1818

19-
Asking the User for confirmation
19+
Asking the User for Confirmation
2020
--------------------------------
2121

2222
Suppose you want to confirm an action before actually executing it. Add
@@ -172,7 +172,7 @@ You can also ask and validate a hidden response::
172172
If you want to allow the response to be visible if it cannot be hidden for
173173
some reason, pass true as the fifth argument.
174174

175-
Let the user choose from a list of Answers
175+
Let the User Choose from a List of Answers
176176
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
177177

178178
.. versionadded:: 2.2
@@ -244,7 +244,7 @@ this set the seventh argument to ``true``::
244244
Now, when the user enters ``1,2``, the result will be:
245245
``You have just selected: blue, yellow``.
246246

247-
Testing a Command which expects input
247+
Testing a Command which Expects Input
248248
-------------------------------------
249249

250250
If you want to write a unit test for a command which expects some kind of input

components/console/introduction.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ method::
472472
You can also test a whole console application by using
473473
:class:`Symfony\\Component\\Console\\Tester\\ApplicationTester`.
474474

475-
Calling an existing Command
475+
Calling an Existing Command
476476
---------------------------
477477

478478
If a command depends on another one being run before it, instead of asking the

components/console/single_command_tool.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. index::
22
single: Console; Single command application
33

4-
Building a Single Command Application
4+
Building a single Command Application
55
=====================================
66

77
When building a command line tool, you may not need to provide several commands.

components/css_selector.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ You can install the component in 2 different ways:
1818
Usage
1919
-----
2020

21-
Why use CSS selectors?
22-
~~~~~~~~~~~~~~~~~~~~~~
21+
Why to Use CSS selectors?
22+
~~~~~~~~~~~~~~~~~~~~~~~~~
2323

2424
When you're parsing an HTML or an XML document, by far the most powerful
2525
method is XPath.
@@ -41,7 +41,7 @@ be converted to an XPath equivalent. This XPath expression can then be used
4141
with other functions and classes that use XPath to find elements in a
4242
document.
4343

44-
The CssSelector component
44+
The CssSelector Component
4545
~~~~~~~~~~~~~~~~~~~~~~~~~
4646

4747
The component's only goal is to convert CSS selectors to their XPath
@@ -66,7 +66,7 @@ You can use this expression with, for instance, :phpclass:`DOMXPath` or
6666
uses the CssSelector component to find elements based on a CSS selector
6767
string. See the :doc:`/components/dom_crawler` for more details.
6868

69-
Limitations of the CssSelector component
69+
Limitations of the CssSelector Component
7070
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7171

7272
Not all CSS selectors can be converted to XPath equivalents.

components/dependency_injection/advanced.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ service by asking for the ``bar`` service like this::
156156
bar: "@foo"
157157
158158
159-
Requiring files
159+
Requiring Files
160160
---------------
161161

162162
There might be use cases when you need to include another file just before

components/dependency_injection/compilation.rst

+3-2
Original file line numberDiff line numberDiff line change
@@ -273,11 +273,12 @@ but also load a secondary one only if a certain parameter is set::
273273

274274
.. _components-dependency-injection-compiler-passes:
275275

276-
Prepending Configuration passed to the Extension
276+
Prepending Configuration Passed to the Extension
277277
------------------------------------------------
278278

279279
.. versionadded:: 2.2
280-
The ability to prepend the configuration of a bundle is new in Symfony 2.2.
280+
The ability to prepend the configuration of a bundle was introduced in
281+
Symfony 2.2.
281282

282283
An Extension can prepend the configuration of any Bundle before the ``load()``
283284
method is called by implementing :class:`Symfony\\Component\\DependencyInjection\\Extension\\PrependExtensionInterface`::

0 commit comments

Comments
 (0)