Skip to content

Commit 9fd5229

Browse files
committed
Merge branch '2.3' into 2.6
Conflicts: cookbook/validation/custom_constraint.rst
2 parents f2d96d5 + 1306aeb commit 9fd5229

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
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/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/validation/custom_constraint.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ The validator class is also simple, and only has one required method ``validate(
6464
{
6565
public function validate($value, Constraint $constraint)
6666
{
67-
if (!preg_match('/^[a-zA-Za0-9]+$/', $value, $matches)) {
67+
if (!preg_match('/^[a-zA-Z0-9]+$/', $value, $matches)) {
6868
// If you're using the new 2.5 validation API (you probably are!)
6969
$this->context->buildViolation($constraint->message)
7070
->setParameter('%string%', $value)

0 commit comments

Comments
 (0)