Skip to content

Commit 7c98ac7

Browse files
committed
Merge branch '2.3' into 2.4
* 2.3: $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 Conflicts: cookbook/security/voters.rst cookbook/service_container/scopes.rst
2 parents 6d11002 + 7901005 commit 7c98ac7

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

+8
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

+1-1
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

+3-3
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

+1-1
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

+3-3
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

+1-1
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

+5-6
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

+5-5
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

+4-4
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

+3-3
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

cookbook/assetic/uglifyjs.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. index::
22
single: Assetic; UglifyJS
33

4-
How to Minify CSS/JS Files (using UglifyJS and UglifyCSS)
4+
How to Minify CSS/JS Files (Using UglifyJS and UglifyCSS)
55
=========================================================
66

77
`UglifyJS`_ is a JavaScript parser/compressor/beautifier toolkit. It can be used
@@ -183,7 +183,7 @@ and :ref:`dump your assetic assets <cookbook-asetic-dump-prod>`.
183183
rather than the common config file. For details on applying filters by
184184
file extension, see :ref:`cookbook-assetic-apply-to`.
185185

186-
Install, configure and use UglifyCSS
186+
Install, Configure and Use UglifyCSS
187187
------------------------------------
188188

189189
The usage of UglifyCSS works the same way as UglifyJS. First, make sure

cookbook/bundles/best_practices.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. index::
22
single: Bundle; Best practices
33

4-
How to use Best Practices for Structuring Bundles
4+
How to Use best Practices for Structuring Bundles
55
=================================================
66

77
A bundle is a directory that has a well-defined structure and can host anything

cookbook/bundles/extension.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
single: Configuration; Semantic
33
single: Bundle; Extension configuration
44

5-
How to expose a Semantic Configuration for a Bundle
5+
How to Expose a semantic Configuration for a Bundle
66
===================================================
77

88
If you open your application configuration file (usually ``app/config/config.yml``),
@@ -330,7 +330,7 @@ information loaded from other bundles). The goal of the ``load()`` method
330330
is to manipulate the container, adding and configuring any methods or services
331331
needed by your bundle.
332332

333-
Loading External Configuration Resources
333+
Loading external Configuration Resources
334334
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
335335

336336
One common thing to do is to load an external configuration file that may
@@ -549,7 +549,7 @@ normalization and advanced merging. You can read more about this in
549549
You can also see it in action by checking out some of the core Configuration classes,
550550
such as the one from the `FrameworkBundle Configuration`_ or the `TwigBundle Configuration`_.
551551

552-
Modifying the configuration of another Bundle
552+
Modifying the Configuration of another Bundle
553553
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
554554

555555
If you have multiple bundles that depend on each other, it may be useful

cookbook/bundles/inheritance.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. index::
22
single: Bundle; Inheritance
33

4-
How to use Bundle Inheritance to Override parts of a Bundle
4+
How to Use Bundle Inheritance to Override Parts of a Bundle
55
===========================================================
66

77
When working with third-party bundles, you'll probably come across a situation

cookbook/bundles/installation.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. index::
22
single: Bundle; Installation
33

4-
How to install 3rd party Bundles
4+
How to Install 3rd Party Bundles
55
================================
66

77
Most bundles provide their own installation instructions. However, the

cookbook/bundles/override.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ See :doc:`/cookbook/service_container/compiler_passes` for information on how to
9393
compiler passes. If you want to do something beyond just overriding the class -
9494
like adding a method call - you can only use the compiler pass method.
9595

96-
Entities & Entity mapping
96+
Entities & Entity Mapping
9797
-------------------------
9898

9999
Due to the way Doctrine works, it is not possible to override entity mapping
@@ -119,7 +119,7 @@ rather than::
119119

120120
.. _override-validation:
121121

122-
Validation metadata
122+
Validation Metadata
123123
-------------------
124124

125125
Symfony loads all validation configuration files from every bundle and

cookbook/bundles/prepend_extension.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
single: Configuration; Semantic
33
single: Bundle; Extension configuration
44

5-
How to simplify configuration of multiple Bundles
5+
How to Simplify Configuration of multiple Bundles
66
=================================================
77

88
When building reusable and extensible applications, developers are often

cookbook/bundles/remove.rst

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. index::
22
single: Bundle; Removing AcmeDemoBundle
33

4-
How to remove the AcmeDemoBundle
4+
How to Remove the AcmeDemoBundle
55
================================
66

77
The Symfony2 Standard Edition comes with a complete demo that lives inside a
@@ -13,7 +13,7 @@ starting a project, but you'll probably want to eventually remove it.
1313
This article uses the AcmeDemoBundle as an example, but you can use
1414
these steps to remove any bundle.
1515

16-
1. Unregister the bundle in the ``AppKernel``
16+
1. Unregister the Bundle in the ``AppKernel``
1717
---------------------------------------------
1818

1919
To disconnect the bundle from the framework, you should remove the bundle from
@@ -38,20 +38,20 @@ development environment and you can find it inside the if statement below::
3838
}
3939
}
4040

41-
2. Remove bundle configuration
41+
2. Remove Bundle Configuration
4242
------------------------------
4343

4444
Now that Symfony doesn't know about the bundle, you need to remove any
4545
configuration and routing configuration inside the ``app/config`` directory
4646
that refers to the bundle.
4747

48-
2.1 Remove bundle routing
48+
2.1 Remove Bundle Routing
4949
~~~~~~~~~~~~~~~~~~~~~~~~~
5050

5151
The routing for the AcmeDemoBundle can be found in ``app/config/routing_dev.yml``.
5252
Remove the ``_acme_demo`` entry at the bottom of this file.
5353

54-
2.2 Remove bundle configuration
54+
2.2 Remove Bundle Configuration
5555
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5656

5757
Some bundles contain configuration in one of the ``app/config/config*.yml``
@@ -65,7 +65,7 @@ used in the configuration for the ``app/config/security.yml`` file. You can
6565
use it as a boilerplate for your own security, but you **can** also remove
6666
everything: it doesn't matter to Symfony if you remove it or not.
6767

68-
3. Remove the bundle from the Filesystem
68+
3. Remove the Bundle from the Filesystem
6969
----------------------------------------
7070

7171
Now you have removed every reference to the bundle in your application, you
@@ -81,7 +81,7 @@ can remove the ``Acme`` directory as well.
8181

8282
echo $this->container->get('kernel')->getBundle('AcmeDemoBundle')->getPath();
8383

84-
4. Remove integration in other bundles
84+
4. Remove Integration in other Bundles
8585
--------------------------------------
8686

8787
.. note::

cookbook/cache/varnish.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. index::
22
single: Cache; Varnish
33

4-
How to use Varnish to speed up my Website
4+
How to Use Varnish to Speed up my Website
55
=========================================
66

77
Because Symfony2's cache uses the standard HTTP cache headers, the
@@ -62,7 +62,7 @@ Symfony2 adds automatically:
6262
// For Varnish < 3.0
6363
// esi;
6464
}
65-
/* By default Varnish ignores Cache-Control: nocache
65+
/* By default Varnish ignores Cache-Control: nocache
6666
(https://www.varnish-cache.org/docs/3.0/tutorial/increasing_your_hitrate.html#cache-control),
6767
so in order avoid caching it has to be done explicitly */
6868
if (beresp.http.Pragma ~ "no-cache" ||

0 commit comments

Comments
 (0)