Skip to content

Commit 1c948c8

Browse files
committed
Merge branch '2.4' into 2.5
* 2.4: $this->request replaced by $request Security] [Custom Provider] Use properties on WebserviceUser Use getters on WebserviceUser removed one space Update submit.rst Also apply it for .rst.inc files Fixed a minor syntax error Added editorconfig apply headline guidelines to the cookbook articles link to the deployment index remove "..." from XML element tags quote YAML strings starting with % or @ characters
2 parents ffa4360 + 7c98ac7 commit 1c948c8

File tree

109 files changed

+261
-250
lines changed

Some content is hidden

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

109 files changed

+261
-250
lines changed

.editorconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
root = true
2+
3+
[*.{rst,rst.inc}]
4+
indent_style = space
5+
indent_size = 2
6+
charset = utf-8
7+
trim_trailing_whitespace = true
8+
insert_final_newline = true

book/forms.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1675,7 +1675,7 @@ file:
16751675
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
16761676
http://symfony.com/schema/dic/symfony http://symfony.com/schema/dic/symfony/symfony-1.0.xsd">
16771677
1678-
<framework:config ...>
1678+
<framework:config>
16791679
<framework:templating>
16801680
<framework:form>
16811681
<framework:resource>AcmeTaskBundle:Form</framework:resource>

book/http_cache.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -862,13 +862,13 @@ First, to use ESI, be sure to enable it in your application configuration:
862862
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
863863
xmlns:framework="http://symfony.com/schema/dic/symfony"
864864
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
865-
http://symfony.com/schema/dic/symfony http://symfony.com/schema/dic/symfony/symfony-1.0.xsd">
865+
http://symfony.com/schema/dic/symfony
866+
http://symfony.com/schema/dic/symfony/symfony-1.0.xsd">
866867
867-
<framework:config ...>
868+
<framework:config>
868869
<!-- ... -->
869870
<framework:esi enabled="true" />
870871
</framework:config>
871-
872872
</container>
873873
874874
.. code-block:: php

book/internals.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ If you enable the web profiler, you also need to mount the profiler routes:
644644
.. code-block:: yaml
645645
646646
_profiler:
647-
resource: @WebProfilerBundle/Resources/config/routing/profiler.xml
647+
resource: "@WebProfilerBundle/Resources/config/routing/profiler.xml"
648648
prefix: /_profiler
649649
650650
.. code-block:: xml

book/service_container.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ the service container gives you a much more appealing option:
588588
</parameters>
589589
590590
<services>
591-
<service id="my_mailer" ...>
591+
<service id="my_mailer">
592592
<!-- ... -->
593593
</service>
594594
<service id="newsletter_manager" class="%newsletter_manager.class%">
@@ -794,7 +794,7 @@ Injecting the dependency by the setter method just needs a change of syntax:
794794
</parameters>
795795
796796
<services>
797-
<service id="my_mailer" ...>
797+
<service id="my_mailer">
798798
<!-- ... -->
799799
</service>
800800
<service id="newsletter_manager" class="%newsletter_manager.class%">
@@ -960,7 +960,7 @@ it exists and do nothing if it doesn't:
960960
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
961961
962962
<services>
963-
<service id="my_mailer" ...>
963+
<service id="my_mailer">
964964
<!-- ... -->
965965
</service>
966966
<service id="newsletter_manager" class="%newsletter_manager.class%">

components/dependency_injection/configurators.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ The service config for the above classes would look something like this:
156156
.. code-block:: xml
157157
158158
<services>
159-
<service id="my_mailer" ...>
159+
<service id="my_mailer">
160160
<!-- ... -->
161161
</service>
162162
<service id="email_formatter_manager" class="EmailFormatterManager">

contributing/documentation/standards.rst

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,11 @@ Language Standards
146146
point of view: use the second instead);
147147
* When referencing a hypothetical person, such as "a user with a session cookie", gender-neutral
148148
pronouns (they/their/them) should be used. For example, instead of:
149-
150-
* he or she, use they
151-
* him or her, use them
152-
* his or her, use their
153-
* his or hers, use theirs
154-
* himself or herself, use themselves
149+
* he or she, use they
150+
* him or her, use them
151+
* his or her, use their
152+
* his or hers, use theirs
153+
* himself or herself, use themselves
155154

156155
.. _`the Sphinx documentation`: http://sphinx-doc.org/rest.html#source-code
157156
.. _`Twig Coding Standards`: http://twig.sensiolabs.org/doc/coding_standards.html

cookbook/assetic/apply_to_option.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. index::
22
single: Assetic; Apply filters
33

4-
How to Apply an Assetic Filter to a Specific File Extension
4+
How to Apply an Assetic Filter to a specific File Extension
55
===========================================================
66

77
Assetic filters can be applied to individual files, groups of files or even,
@@ -49,7 +49,7 @@ An example configuration might look like this:
4949
),
5050
));
5151
52-
Filter a Single File
52+
Filter a single File
5353
--------------------
5454

5555
You can now serve up a single CoffeeScript file as JavaScript from within your
@@ -75,7 +75,7 @@ templates:
7575
This is all that's needed to compile this CoffeeScript file and serve it
7676
as the compiled JavaScript.
7777

78-
Filter Multiple Files
78+
Filter multiple Files
7979
---------------------
8080

8181
You can also combine multiple CoffeeScript files into a single output file:
@@ -107,7 +107,7 @@ JavaScript.
107107

108108
.. _cookbook-assetic-apply-to:
109109

110-
Filtering based on a File Extension
110+
Filtering Based on a File Extension
111111
-----------------------------------
112112

113113
One of the great advantages of using Assetic is reducing the number of asset
@@ -146,7 +146,7 @@ applied to all ``.coffee`` files:
146146
apply_to="\.coffee$" />
147147
<assetic:node-paths>/usr/lib/node_modules/</assetic:node-path>
148148
</assetic:config>
149-
149+
150150
.. code-block:: php
151151
152152
// app/config/config.php

cookbook/assetic/asset_management.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ the :ref:`cssrewrite <cookbook-assetic-cssrewrite>` filter.
159159

160160
.. _cookbook-assetic-including-image:
161161

162-
Including images
162+
Including Images
163163
~~~~~~~~~~~~~~~~
164164

165165
To include an image you can use the ``image`` tag.
@@ -422,7 +422,7 @@ into your template:
422422
A more detailed guide about configuring and using Assetic filters as well as
423423
details of Assetic's debug mode can be found in :doc:`/cookbook/assetic/uglifyjs`.
424424

425-
Controlling the URL used
425+
Controlling the URL Used
426426
------------------------
427427

428428
If you wish to, you can control the URLs that Assetic produces. This is
@@ -471,7 +471,7 @@ it might be downright frustrating.
471471
Fortunately, Assetic provides a way to dump your assets to real files, instead
472472
of being generated dynamically.
473473

474-
Dumping Asset Files in the ``prod`` environment
474+
Dumping Asset Files in the ``prod`` Environment
475475
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
476476

477477
In the ``prod`` environment, your JS and CSS files are represented by a single
@@ -500,7 +500,7 @@ This will physically generate and write each file that you need (e.g. ``/js/abcd
500500
If you update any of your assets, you'll need to run this again to regenerate
501501
the file.
502502

503-
Dumping Asset Files in the ``dev`` environment
503+
Dumping Asset Files in the ``dev`` Environment
504504
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
505505

506506
By default, each asset path generated in the ``dev`` environment is handled

cookbook/assetic/jpeg_optimize.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. index::
22
single: Assetic; Image optimization
33

4-
How to Use Assetic For Image Optimization with Twig Functions
4+
How to Use Assetic for Image Optimization with Twig Functions
55
=============================================================
66

77
Amongst its many filters, Assetic has four filters which can be used for on-the-fly
@@ -111,7 +111,7 @@ remove these by using the ``strip_all`` option:
111111
),
112112
));
113113
114-
Lowering Maximum Quality
114+
Lowering maximum Quality
115115
~~~~~~~~~~~~~~~~~~~~~~~~
116116

117117
The quality level of the JPEG is not affected by default. You can gain
@@ -152,7 +152,7 @@ image quality:
152152
),
153153
));
154154
155-
Shorter syntax: Twig Function
155+
Shorter Syntax: Twig Function
156156
-----------------------------
157157

158158
If you're using Twig, it's possible to achieve all of this with a shorter

0 commit comments

Comments
 (0)