Skip to content

Commit 14d169f

Browse files
committed
Merge branch '4.4' into 5.1
* 4.4: Enhancement: New rule - SpaceBetweenLabelAndLinkInDoc Update user_provider.rst
2 parents e3d1592 + e7d17a4 commit 14d169f

File tree

9 files changed

+16
-14
lines changed

9 files changed

+16
-14
lines changed

.doctor-rst.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ rules:
3030
replace_code_block_types: ~
3131
replacement: ~
3232
short_array_syntax: ~
33+
space_between_label_and_link_in_doc: ~
3334
space_between_label_and_link_in_ref: ~
3435
typo: ~
3536
unused_links: ~

contributing/code_of_conduct/code_of_conduct.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Examples of unacceptable behavior by participants include:
3737
Our Responsibilities
3838
--------------------
3939

40-
:doc:`CoC Active Response Ensurers, or CARE</contributing/code_of_conduct/care_team>`,
40+
:doc:`CoC Active Response Ensurers, or CARE </contributing/code_of_conduct/care_team>`,
4141
are responsible for clarifying the standards of acceptable
4242
behavior and are expected to take appropriate and fair corrective action in
4343
response to any instances of unacceptable behavior.

contributing/map.rst.inc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
* :doc:`Security </contributing/code/security>`
1717
* :doc:`Tests </contributing/code/tests>`
1818
* :doc:`Backward Compatibility </contributing/code/bc>`
19-
* :doc:`Coding Standards</contributing/code/standards>`
20-
* :doc:`Code Conventions</contributing/code/conventions>`
21-
* :doc:`Git</contributing/code/git>`
19+
* :doc:`Coding Standards </contributing/code/standards>`
20+
* :doc:`Code Conventions </contributing/code/conventions>`
21+
* :doc:`Git </contributing/code/git>`
2222
* :doc:`License </contributing/code/license>`
2323

2424
* **Documentation**

deployment/proxies.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ How to Configure Symfony to Work behind a Load Balancer or a Reverse Proxy
33

44
When you deploy your application, you may be behind a load balancer (e.g.
55
an AWS Elastic Load Balancing) or a reverse proxy (e.g. Varnish for
6-
:doc:`caching</http_cache>`).
6+
:doc:`caching </http_cache>`).
77

88
For the most part, this doesn't cause any problems with Symfony. But, when
99
a request passes through a proxy, certain request information is sent using

frontend/encore/simple-example.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ be executed. All the CSS files that were required will also be displayed.
121121
The ``encore_entry_link_tags()`` and ``encore_entry_script_tags()`` functions
122122
read from an ``entrypoints.json`` file that's generated by Encore to know the exact
123123
filename(s) to render. This file is *especially* useful because you can
124-
:doc:`enable versioning</frontend/encore/versioning>` or
125-
:doc:`point assets to a CDN</frontend/encore/cdn>` without making *any* changes to your
124+
:doc:`enable versioning </frontend/encore/versioning>` or
125+
:doc:`point assets to a CDN </frontend/encore/cdn>` without making *any* changes to your
126126
template: the paths in ``entrypoints.json`` will always be the final, correct paths.
127127

128128
If you're *not* using Symfony, you can ignore the ``entrypoints.json`` file and

reference/constraints/map.rst.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ String Constraints
2323
* :doc:`Hostname </reference/constraints/Hostname>`
2424
* :doc:`Ip </reference/constraints/Ip>`
2525
* :doc:`Json</reference/constraints/Json>`
26-
* :doc:`Uuid</reference/constraints/Uuid>`
26+
* :doc:`Uuid </reference/constraints/Uuid>`
2727
* :doc:`UserPassword </reference/constraints/UserPassword>`
2828
* :doc:`NotCompromisedPassword </reference/constraints/NotCompromisedPassword>`
2929

reference/forms/types/options/validation_groups.rst.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ the option. Symfony will then pass the form when calling it::
4949
.. note::
5050

5151
When your form contains multiple submit buttons, you can change the
52-
validation group depending on :doc:`which button is used</form/button_based_validation>`
52+
validation group depending on :doc:`which button is used </form/button_based_validation>`
5353
to submit the form.
5454

5555
If you need advanced logic to determine the validation groups have

reference/forms/types/submit.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ A submit button.
2121
| | - `translation_domain`_ |
2222
| | - `validation_groups`_ |
2323
+----------------------+----------------------------------------------------------------------+
24-
| Parent type | :doc:`ButtonType</reference/forms/types/button>` |
24+
| Parent type | :doc:`ButtonType </reference/forms/types/button>` |
2525
+----------------------+----------------------------------------------------------------------+
2626
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\SubmitType` |
2727
+----------------------+----------------------------------------------------------------------+

security/user_provider.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,23 +128,24 @@ interface only requires one method: ``loadUserByUsername($username)``::
128128
// src/Repository/UserRepository.php
129129
namespace App\Repository;
130130

131-
use Doctrine\ORM\EntityRepository;
131+
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
132132
use Symfony\Bridge\Doctrine\Security\User\UserLoaderInterface;
133133

134-
class UserRepository extends EntityRepository implements UserLoaderInterface
134+
class UserRepository extends ServiceEntityRepository implements UserLoaderInterface
135135
{
136136
// ...
137137

138138
public function loadUserByUsername($usernameOrEmail)
139139
{
140-
return $this->createQuery(
140+
$entityManager = $this->getEntityManager();
141+
142+
return $entityManager->createQuery(
141143
'SELECT u
142144
FROM App\Entity\User u
143145
WHERE u.username = :query
144146
OR u.email = :query'
145147
)
146148
->setParameter('query', $usernameOrEmail)
147-
->getQuery()
148149
->getOneOrNullResult();
149150
}
150151
}

0 commit comments

Comments
 (0)