Skip to content

Commit 73fdf61

Browse files
committed
Merge branch '4.2'
* 4.2: Add missing security guard sub-component Update unit_testing.rst [#11139] fix a minor typo removed blank line and space add missing brackets use "behavior" instead of "behaviour" Remove unnecessary backslash escape Improve now what sentence
2 parents 1bfe282 + 45c7c69 commit 73fdf61

File tree

10 files changed

+17
-13
lines changed

10 files changed

+17
-13
lines changed

components/form.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ the CSRF generator and validated when binding the form.
157157

158158
You can disable CSRF protection per form using the ``csrf_protection`` option::
159159

160-
use Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType
160+
use Symfony\Component\Form\Extension\Core\Type\FormType;
161161

162162
$form = $formFactory->createBuilder(FormType::class, null, ['csrf_protection' => false])
163163
->getForm();

components/phpunit_bridge.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -605,11 +605,11 @@ If you have installed the bridge through Composer, you can run it by calling e.g
605605

606606
It's also possible to set this env var in the ``phpunit.xml.dist`` file.
607607

608-
Code coverage listener
608+
Code Coverage Listener
609609
----------------------
610610

611611
By default, the code coverage is computed with the following rule: if a line of
612-
code is executed, then it is marked as covered. And the test which executes a
612+
code is executed, then it is marked as covered. The test which executes a
613613
line of code is therefore marked as "covering the line of code". This can be
614614
misleading.
615615

@@ -664,7 +664,7 @@ the ``Test`` part of the classname: ``My\Namespace\Tests\FooTest`` ->
664664
Installation
665665
~~~~~~~~~~~~
666666

667-
Add the following configuration to the ``phpunit.xml.dist`` file
667+
Add the following configuration to the ``phpunit.xml.dist`` file:
668668

669669
.. code-block:: xml
670670

components/security.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ Alternatively, you can clone the `<https://github.com/symfony/security>`_ reposi
2222

2323
.. include:: /components/require_autoload.rst.inc
2424

25-
The Security component is divided into four smaller sub-components which can be
26-
used separately:
25+
The Security component is divided into several smaller sub-components which can
26+
be used separately:
2727

2828
``symfony/security-core``
2929
It provides all the common security features, from authentication to
@@ -36,6 +36,10 @@ used separately:
3636
``symfony/security-csrf``
3737
It provides protection against `CSRF attacks`_.
3838

39+
``symfony/security-guard``
40+
It brings many layers of authentication together, allowing the creation
41+
of complex authentication systems.
42+
3943
.. seealso::
4044

4145
This article explains how to use the Security features as an independent

components/using_components.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ immediately::
5959
Now what?
6060
---------
6161

62-
Now that the component is installed and autoloaded, read the specific component's
62+
Now, the component is installed and autoloaded. Read the specific component's
6363
documentation to find out more about how to use it.
6464

6565
And have fun!

create_framework/unit_testing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ resolver. Modify the framework to make use of them::
5757
class Framework
5858
{
5959
protected $matcher;
60-
protected $resolver;
60+
protected $controllerResolver;
6161
protected $argumentResolver;
6262

6363
public function __construct(UrlMatcherInterface $matcher, ControllerResolverInterface $resolver, ArgumentResolverInterface $argumentResolver)
6464
{
6565
$this->matcher = $matcher;
66-
$this->resolver = $resolver;
66+
$this->controllerResolver = $resolver;
6767
$this->argumentResolver = $argumentResolver;
6868
}
6969

form/form_customization.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ Variable Usage
396396
``block_prefixes`` An array of all the names of the parent types.
397397
``cache_key`` A unique key which is used for caching.
398398
``compound`` Whether or not a field is actually a holder for a group of children fields
399-
(for example, a ``choice`` field, which is actually a group of checkboxes.
399+
(for example, a ``choice`` field, which is actually a group of checkboxes).
400400
``data`` The normalized data of the type.
401401
``disabled`` If ``true``, ``disabled="disabled"`` is added to the field.
402402
``errors`` An array of any errors attached to *this* specific field (e.g. ``form.title.errors``).

quick_tour/flex_recipes.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ Thanks to Flex, after one command, you can start using Twig immediately:
9595
+ 'name' => $name,
9696
+ ]);
9797
}
98+
}
9899
99100
By extending ``AbstractController``, you now have access to a number of shortcut
100101
methods and tools, like ``render()``. Create the new template:

reference/configuration/security.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,6 @@ application:
309309
.. code-block:: yaml
310310
311311
# config/packages/security.yaml
312-
313312
security:
314313
# ...
315314
firewalls:

security/access_control.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Take the following ``access_control`` entries as an example:
8282
'role' => 'ROLE_USER_PORT',
8383
'ip' => '127.0.0.1',
8484
'port' => '8080',
85-
),
85+
],
8686
[
8787
'path' => '^/admin',
8888
'role' => 'ROLE_USER_HOST',

security/security_checker.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ First, install the security checker in your project:
1414
.. code-block:: terminal
1515
1616
# require at least the 5.0 version of the package because older versions
17-
# checked the security vulnerabilities using an URL that is no longer available
17+
# checked the security vulnerabilities using a URL that is no longer available
1818
$ composer require sensiolabs/security-checker:^5.0
1919
2020
Then run this command:

0 commit comments

Comments
 (0)