Skip to content

Commit 45c7c69

Browse files
committed
Merge branch '3.4' into 4.2
* 3.4: Add missing security guard sub-component [#8416] some minor tweaks Update unit_testing.rst removed blank line and space use "behavior" instead of "behaviour" Remove unnecessary backslash escape Improve now what sentence
2 parents b6a1e73 + aa60eb5 commit 45c7c69

File tree

6 files changed

+13
-10
lines changed

6 files changed

+13
-10
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

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:

0 commit comments

Comments
 (0)