Skip to content

Commit 0fe1050

Browse files
committed
Merge branch '2.7' into 2.8
2 parents 9538919 + 6d17756 commit 0fe1050

31 files changed

+240
-12
lines changed

Diff for: book/security.rst

+6-6
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@ A) Configuring how your Users will Authenticate
128128
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
129129

130130
The main job of a firewall is to configure *how* your users will authenticate.
131-
Will they use a login form? Http Basic? An API token? All of the above?
131+
Will they use a login form? HTTP basic authentication? An API token? All of the above?
132132

133-
Let's start with Http Basic (the old-school pop-up) and work up from there.
133+
Let's start with HTTP basic authentication (the old-school prompt) and work up from there.
134134
To activate this, add the ``http_basic`` key under your firewall:
135135

136136
.. configuration-block::
@@ -265,7 +265,7 @@ user to be logged in to access this URL:
265265
You'll learn more about this ``ROLE_ADMIN`` thing and denying access
266266
later in the :ref:`security-authorization` section.
267267

268-
Great! Now, if you go to ``/admin``, you'll see the HTTP Basic popup:
268+
Great! Now, if you go to ``/admin``, you'll see the HTTP basic auth prompt:
269269

270270
.. image:: /images/book/security_http_basic_popup.png
271271
:align: center
@@ -376,7 +376,7 @@ probably only need one. If you *do* have multiple, you can configure which
376376
Try to login using username ``admin`` and password ``kitten``. You should
377377
see an error!
378378

379-
No encoder has been configured for account "Symfony\Component\Security\Core\User\User"
379+
No encoder has been configured for account "Symfony\\Component\\Security\\Core\\User\\User"
380380

381381
To fix this, add an ``encoders`` key:
382382

@@ -598,8 +598,8 @@ before inserting them into the database? Don't worry, see
598598
D) Configuration Done!
599599
~~~~~~~~~~~~~~~~~~~~~~
600600

601-
Congratulations! You now have a working authentication system that uses Http
602-
Basic and loads users right from the ``security.yml`` file.
601+
Congratulations! You now have a working authentication system that uses HTTP
602+
basic auth and loads users right from the ``security.yml`` file.
603603

604604
Your next steps depend on your setup:
605605

Diff for: components/class_loader/introduction.rst

+2
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,7 @@ You can install the component in 2 different ways:
4141
on `Packagist`_);
4242
* Use the official Git repository (https://github.com/symfony/ClassLoader).
4343

44+
.. include:: /components/require_autoload.rst.inc
45+
4446
.. _`autoloading mechanism`: http://php.net/manual/en/language.oop5.autoload.php
4547
.. _Packagist: https://packagist.org/packages/symfony/class-loader

Diff for: components/config/introduction.rst

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ You can install the component in 2 different ways:
1717
* :doc:`Install it via Composer </components/using_components>` (``symfony/config`` on `Packagist`_);
1818
* Use the official Git repository (https://github.com/symfony/Config).
1919

20+
.. include:: /components/require_autoload.rst.inc
21+
2022
Sections
2123
--------
2224

Diff for: components/console/introduction.rst

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ You can install the component in 2 different ways:
2020
* :doc:`Install it via Composer </components/using_components>` (``symfony/console`` on `Packagist`_);
2121
* Use the official Git repository (https://github.com/symfony/Console).
2222

23+
.. include:: /components/require_autoload.rst.inc
24+
2325
Creating a basic Command
2426
------------------------
2527

Diff for: components/css_selector.rst

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ You can install the component in 2 different ways:
1515
* :doc:`Install it via Composer </components/using_components>` (``symfony/css-selector`` on `Packagist`_);
1616
* Use the official Git repository (https://github.com/symfony/CssSelector).
1717

18+
.. include:: /components/require_autoload.rst.inc
19+
1820
Usage
1921
-----
2022

Diff for: components/debug/introduction.rst

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ You can install the component in many different ways:
1919
* :doc:`Install it via Composer </components/using_components>` (``symfony/debug`` on `Packagist`_);
2020
* Use the official Git repository (https://github.com/symfony/Debug).
2121

22+
.. include:: /components/require_autoload.rst.inc
23+
2224
Usage
2325
-----
2426

Diff for: components/dependency_injection/introduction.rst

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ You can install the component in 2 different ways:
1919
* :doc:`Install it via Composer </components/using_components>` (``symfony/dependency-injection`` on `Packagist`_);
2020
* Use the official Git repository (https://github.com/symfony/DependencyInjection).
2121

22+
.. include:: /components/require_autoload.rst.inc
23+
2224
Basic Usage
2325
-----------
2426

Diff for: components/dom_crawler.rst

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ You can install the component in 2 different ways:
2020
* :doc:`Install it via Composer </components/using_components>` (``symfony/dom-crawler`` on `Packagist`_);
2121
* Use the official Git repository (https://github.com/symfony/DomCrawler).
2222

23+
.. include:: /components/require_autoload.rst.inc
24+
2325
Usage
2426
-----
2527

Diff for: components/event_dispatcher/introduction.rst

+2
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ You can install the component in 2 different ways:
5656
* :doc:`Install it via Composer </components/using_components>` (``symfony/event-dispatcher`` on `Packagist`_);
5757
* Use the official Git repository (https://github.com/symfony/EventDispatcher).
5858

59+
.. include:: /components/require_autoload.rst.inc
60+
5961
Usage
6062
-----
6163

Diff for: components/filesystem/introduction.rst

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ You can install the component in 2 different ways:
1919
* :doc:`Install it via Composer </components/using_components>` (``symfony/filesystem`` on `Packagist`_);
2020
* Use the official Git repository (https://github.com/symfony/Filesystem).
2121

22+
.. include:: /components/require_autoload.rst.inc
23+
2224
Usage
2325
-----
2426

Diff for: components/finder.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ You can install the component in 2 different ways:
1616
* :doc:`Install it via Composer </components/using_components>` (``symfony/finder`` on `Packagist`_);
1717
* Use the official Git repository (https://github.com/symfony/Finder).
1818

19+
.. include:: /components/require_autoload.rst.inc
20+
1921
Usage
2022
-----
2123

@@ -302,7 +304,7 @@ The contents of returned files can be read with
302304

303305
foreach ($finder as $file) {
304306
$contents = $file->getContents();
305-
307+
306308
// ...
307309
}
308310

Diff for: components/form/introduction.rst

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ You can install the component in 2 different ways:
2222
* :doc:`Install it via Composer </components/using_components>` (``symfony/form`` on `Packagist`_);
2323
* Use the official Git repository (https://github.com/symfony/Form).
2424

25+
.. include:: /components/require_autoload.rst.inc
26+
2527
Configuration
2628
-------------
2729

Diff for: components/http_foundation/introduction.rst

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ You can install the component in 2 different ways:
2424
* :doc:`Install it via Composer </components/using_components>` (``symfony/http-foundation`` on `Packagist`_);
2525
* Use the official Git repository (https://github.com/symfony/HttpFoundation).
2626

27+
.. include:: /components/require_autoload.rst.inc
28+
2729
.. _component-http-foundation-request:
2830

2931
Request

Diff for: components/http_kernel/introduction.rst

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ You can install the component in 2 different ways:
1919
* :doc:`Install it via Composer </components/using_components>` (``symfony/http-kernel`` on Packagist_);
2020
* Use the official Git repository (https://github.com/symfony/HttpKernel).
2121

22+
.. include:: /components/require_autoload.rst.inc
23+
2224
The Workflow of a Request
2325
-------------------------
2426

Diff for: components/options_resolver.rst

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ You can install the component in 2 different ways:
1717
* :doc:`Install it via Composer </components/using_components>` (``symfony/options-resolver`` on `Packagist`_);
1818
* Use the official Git repository (https://github.com/symfony/OptionsResolver).
1919

20+
.. include:: /components/require_autoload.rst.inc
21+
2022
Notes on Previous Versions
2123
--------------------------
2224

Diff for: components/process.rst

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ You can install the component in 2 different ways:
1515
* :doc:`Install it via Composer </components/using_components>` (``symfony/process`` on `Packagist`_);
1616
* Use the official Git repository (https://github.com/symfony/Process).
1717

18+
.. include:: /components/require_autoload.rst.inc
19+
1820
Usage
1921
-----
2022

Diff for: components/property_access/introduction.rst

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ You can install the component in two different ways:
1616
* :doc:`Install it via Composer</components/using_components>` (``symfony/property-access`` on `Packagist`_);
1717
* Use the official Git repository (https://github.com/symfony/PropertyAccess).
1818

19+
.. include:: /components/require_autoload.rst.inc
20+
1921
Usage
2022
-----
2123

Diff for: components/require_autoload.rst.inc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Then, require the ``vendor/autoload.php`` file to enable the autoloading mechanism
2+
provided by Composer. Otherwise, your application won't be able to find the classes
3+
of this Symfony component.

Diff for: components/routing/introduction.rst

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ You can install the component in 2 different ways:
1616
* :doc:`Install it via Composer </components/using_components>` (``symfony/routing`` on `Packagist`_);
1717
* Use the official Git repository (https://github.com/symfony/Routing).
1818

19+
.. include:: /components/require_autoload.rst.inc
20+
1921
Usage
2022
-----
2123

Diff for: components/security/introduction.rst

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ You can install the component in 2 different ways:
1919
* :doc:`Install it via Composer </components/using_components>` (``symfony/security`` on Packagist_);
2020
* Use the official Git repository (https://github.com/symfony/Security).
2121

22+
.. include:: /components/require_autoload.rst.inc
23+
2224
Sections
2325
--------
2426

Diff for: components/serializer.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ You can install the component in 2 different ways:
3333
* :doc:`Install it via Composer </components/using_components>` (``symfony/serializer`` on `Packagist`_);
3434
* Use the official Git repository (https://github.com/symfony/Serializer).
3535

36+
.. include:: /components/require_autoload.rst.inc
37+
3638
Usage
3739
-----
3840

@@ -185,7 +187,7 @@ like the following::
185187

186188
use Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactory;
187189
// For annotations
188-
usr Doctrine\Common\Annotations\AnnotationReader;
190+
use Doctrine\Common\Annotations\AnnotationReader;
189191
use Symfony\Component\Serializer\Mapping\Loader\AnnotationLoader;
190192
// For XML
191193
// use Symfony\Component\Serializer\Mapping\Loader\XmlFileLoader;

Diff for: components/stopwatch.rst

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ You can install the component in two different ways:
1515
* :doc:`Install it via Composer</components/using_components>` (``symfony/stopwatch`` on `Packagist`_);
1616
* Use the official Git repository (https://github.com/symfony/Stopwatch).
1717

18+
.. include:: /components/require_autoload.rst.inc
19+
1820
Usage
1921
-----
2022

Diff for: components/templating/introduction.rst

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ You can install the component in 2 different ways:
2121
* :doc:`Install it via Composer </components/using_components>` (``symfony/templating`` on `Packagist`_);
2222
* Use the official Git repository (https://github.com/symfony/Templating).
2323

24+
.. include:: /components/require_autoload.rst.inc
25+
2426
Usage
2527
-----
2628

Diff for: components/translation/introduction.rst

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ You can install the component in 2 different ways:
1616
* :doc:`Install it via Composer </components/using_components>` (``symfony/translation`` on `Packagist`_);
1717
* Use the official Git repository (https://github.com/symfony/Translation).
1818

19+
.. include:: /components/require_autoload.rst.inc
20+
1921
Constructing the Translator
2022
---------------------------
2123

Diff for: components/yaml/introduction.rst

+2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ You can install the component in 2 different ways:
3434
* :doc:`Install it via Composer </components/using_components>` (``symfony/yaml`` on `Packagist`_);
3535
* Use the official Git repository (https://github.com/symfony/Yaml).
3636

37+
.. include:: /components/require_autoload.rst.inc
38+
3739
Why?
3840
----
3941

Diff for: components/yaml/yaml_format.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ YAML uses indentation with one or more spaces to describe nested collections:
223223
PHP: 5.2
224224
Propel: 1.3
225225
226-
The following YAML is equivalent to the following PHP code:
226+
The above YAML is equivalent to the following PHP code:
227227

228228
.. code-block:: php
229229
@@ -240,7 +240,7 @@ The following YAML is equivalent to the following PHP code:
240240
241241
There is one important thing you need to remember when using indentation in a
242242
YAML file: *Indentation must be done with one or more spaces, but never with
243-
tabulations*.
243+
tabulators*.
244244

245245
You can nest sequences and mappings as you like:
246246

Diff for: cookbook/bundles/installation.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ The only thing you need to do now is register the bundle in ``AppKernel``::
7373

7474
In a few rare cases, you may want a bundle to be *only* enabled in the development
7575
:doc:`environment </cookbook/configuration/environments>`. For example,
76-
the DoctrineFixturesBundle helps load dummy data - something you probably
76+
the DoctrineFixturesBundle helps to load dummy data - something you probably
7777
only want to do while developing. To only load this bundle in the ``dev``
7878
and ``test`` environments, register the bundle in this way::
7979

Diff for: cookbook/controller/index.rst

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ Controller
66

77
error_pages
88
service
9+
upload_file

0 commit comments

Comments
 (0)