Skip to content

Commit 8fadb17

Browse files
committed
Merge branch '2.7' into 2.8
* 2.7: (21 commits) [#5352] minor language tweak Updated text about HTTP methods Update http_fundamentals.rst [HttpKernel] Fix use statement [PSR-7] Fix Diactoros link Fixes small typo in data transformers cookbook some tweaks to the data transformers chapter Updated the Symfony Versions Roadmap image Fixed a minor typo Fixed minor issues Use the built-in serializer instead of promoting JMS Removed some information wrongly rebased Style / grammar fixes for the deployment chapter Style / grammar fixes for the controller chapter Style / grammar fixes for the console chapter Removes wrong comma Rewritten 'whether' & removed serial comma Style / grammar fixes for the configuration chapter Style / grammar fixes for the cache chapter Style / grammar fixes for the bundles chapter ...
2 parents 654b36c + 9b88c4b commit 8fadb17

25 files changed

+118
-92
lines changed

book/http_fundamentals.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,11 @@ delete a specific blog entry, for example:
9696
9797
.. note::
9898

99-
There are actually nine HTTP methods defined by the HTTP specification,
100-
but many of them are not widely used or supported. In reality, many modern
101-
browsers don't even support the ``PUT`` and ``DELETE`` methods.
99+
There are actually nine HTTP methods (also known as verbs) defined by
100+
the HTTP specification, but many of them are not widely used or supported.
101+
In reality, many modern browsers only support ``POST`` and ``GET`` in
102+
HTML forms. Various others are however supported in XMLHttpRequests,
103+
as well as by Symfony's router.
102104

103105
In addition to the first line, an HTTP request invariably contains other
104106
lines of information called request headers. The headers can supply a wide

components/http_kernel/introduction.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ can be used to check if the current request is a "master" or "sub" request.
692692
For example, a listener that only needs to act on the master request may
693693
look like this::
694694

695-
use Symfony\Component\HttpKernel\HttpKernelInterface;
695+
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
696696
// ...
697697

698698
public function onKernelRequest(GetResponseEvent $event)

cookbook/assetic/asset_management.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ To include JavaScript files, use the ``javascripts`` tag in any template:
9191

9292
You can also include CSS stylesheets: see :ref:`cookbook-assetic-including-css`.
9393

94-
In this example, all of the files in the ``Resources/public/js/`` directory
95-
of the AppBundle will be loaded and served from a different location.
96-
The actual rendered tag might simply look like:
94+
In this example, all files in the ``Resources/public/js/`` directory of the
95+
AppBundle will be loaded and served from a different location. The actual
96+
rendered tag might simply look like:
9797

9898
.. code-block:: html
9999

@@ -357,7 +357,7 @@ Filters
357357
Once they're managed by Assetic, you can apply filters to your assets before
358358
they are served. This includes filters that compress the output of your assets
359359
for smaller file sizes (and better frontend optimization). Other filters
360-
can compile JavaScript file from CoffeeScript files and process SASS into CSS.
360+
can compile CoffeeScript files to JavaScript and process SASS into CSS.
361361
In fact, Assetic has a long list of available filters.
362362

363363
Many of the filters do not do the work directly, but use existing third-party

cookbook/assetic/jpeg_optimize.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
How to Use Assetic for Image Optimization with Twig Functions
55
=============================================================
66

7-
Amongst its many filters, Assetic has four filters which can be used for on-the-fly
7+
Among its many filters, Assetic has four filters which can be used for on-the-fly
88
image optimization. This allows you to get the benefits of smaller file sizes
99
without having to use an image editor to process each image. The results
1010
are cached and can be dumped for production so there is no performance hit
@@ -70,7 +70,7 @@ It can now be used from a template:
7070
Removing all EXIF Data
7171
~~~~~~~~~~~~~~~~~~~~~~
7272

73-
By default, the ``jpegoptim`` filter removes some of the meta information stored
73+
By default, the ``jpegoptim`` filter removes some meta information stored
7474
in the image. To remove all EXIF data and comments, set the ``strip_all`` option
7575
to ``true``:
7676

cookbook/assetic/yuicompressor.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Download the YUI Compressor JAR
1818
-------------------------------
1919

2020
The YUI Compressor is written in Java and distributed as a JAR. `Download the JAR`_
21-
from the Yahoo! site and save it to ``app/Resources/java/yuicompressor.jar``.
21+
from the Yahoo! website and save it to ``app/Resources/java/yuicompressor.jar``.
2222

2323
Configure the YUI Filters
2424
-------------------------

cookbook/bundles/configuration.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ The ``Configuration`` class to handle the sample configuration looks like::
210210
supporting "prototype" nodes, advanced validation, XML-specific normalization
211211
and advanced merging. You can read more about this in
212212
:doc:`the Config component documentation </components/config/definition>`. You
213-
can also see it in action by checking out some of the core Configuration
213+
can also see it in action by checking out some core Configuration
214214
classes, such as the one from the `FrameworkBundle Configuration`_ or the
215215
`TwigBundle Configuration`_.
216216

@@ -227,7 +227,7 @@ thrown)::
227227
}
228228

229229
The ``processConfiguration()`` method uses the configuration tree you've defined
230-
in the ``Configuration`` class to validate, normalize and merge all of the
230+
in the ``Configuration`` class to validate, normalize and merge all the
231231
configuration arrays together.
232232

233233
.. tip::
@@ -253,7 +253,7 @@ configuration arrays together.
253253
}
254254

255255
This class uses the ``getConfiguration()`` method to get the Configuration
256-
instance, you should override it if your Configuration class is not called
256+
instance. You should override it if your Configuration class is not called
257257
``Configuration`` or if it is not placed in the same namespace as the
258258
extension.
259259

cookbook/bundles/override.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ In this example you fetch the service definition of the original service, and se
9090
its class name to your own class.
9191

9292
See :doc:`/cookbook/service_container/compiler_passes` for information on how to use
93-
compiler passes. If you want to do something beyond just overriding the class -
94-
like adding a method call - you can only use the compiler pass method.
93+
compiler passes. If you want to do something beyond just overriding the class,
94+
like adding a method call, you can only use the compiler pass method.
9595

9696
Entities & Entity Mapping
9797
-------------------------

cookbook/bundles/prepend_extension.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ often need to be repeated for various bundles.
1515
Using the below approach, it is possible to remove the disadvantage of the
1616
multiple bundle approach by enabling a single Extension to prepend the settings
1717
for any bundle. It can use the settings defined in the ``app/config/config.yml``
18-
to prepend settings just as if they would have been written explicitly by
18+
to prepend settings just as if they had been written explicitly by
1919
the user in the application configuration.
2020

2121
For example, this could be used to configure the entity manager name to use in

cookbook/bundles/remove.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Remove the ``_acme_demo`` entry at the bottom of this file.
5656

5757
Some bundles contain configuration in one of the ``app/config/config*.yml``
5858
files. Be sure to remove the related configuration from these files. You can
59-
quickly spot bundle configuration by looking for a ``acme_demo`` (or whatever
59+
quickly spot bundle configuration by looking for an ``acme_demo`` (or whatever
6060
the name of the bundle is, e.g. ``fos_user`` for the FOSUserBundle) string in
6161
the configuration files.
6262

cookbook/cache/varnish.rst

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,16 @@ in the Symfony configuration so that Varnish is seen as a trusted proxy and the
2929
Routing and X-FORWARDED Headers
3030
-------------------------------
3131

32-
If the ``X-Forwarded-Port`` header is not set correctly, Symfony will append
33-
the port where the PHP application is running when generating absolute URLs,
34-
e.g. ``http://example.com:8080/my/path``. To ensure that the Symfony router
35-
generates URLs correctly with Varnish, add the correct port number in the
36-
``X-Forwarded-Port`` header. This port depends on your setup.
37-
38-
Suppose that external connections come in on the default HTTP port 80. For HTTPS
39-
connections, there is another proxy (as Varnish does not do HTTPS itself) on the
40-
default HTTPS port 443 that handles the SSL termination and forwards the requests
41-
as HTTP requests to Varnish with a ``X-Forwarded-Proto`` header. In this case,
42-
add the following to your Varnish configuration:
32+
To ensure that the Symfony Router generates URLs correctly with Varnish,
33+
an ``X-Forwarded-Port`` header must be present for Symfony to use the
34+
correct port number.
35+
36+
This port number corresponds to the port your setup is using to receive external
37+
connections (``80`` is the default value for HTTP connections). If the application
38+
also accepts HTTPS connections, there could be another proxy (as Varnish does
39+
not do HTTPS itself) on the default HTTPS port 443 that handles the SSL termination
40+
and forwards the requests as HTTP requests to Varnish with an ``X-Forwarded-Proto``
41+
header. In this case, you need to add the following configuration snippet:
4342

4443
.. code-block:: varnish4
4544
@@ -192,7 +191,7 @@ Symfony adds automatically:
192191
.. tip::
193192

194193
If you followed the advice about ensuring a consistent caching
195-
behavior, those vcl functions already exist. Just append the code
194+
behavior, those VCL functions already exist. Just append the code
196195
to the end of the function, they won't interfere with each other.
197196

198197
.. index::

0 commit comments

Comments
 (0)