File tree Expand file tree Collapse file tree 9 files changed +16
-14
lines changed Expand file tree Collapse file tree 9 files changed +16
-14
lines changed Original file line number Diff line number Diff line change 30
30
replace_code_block_types : ~
31
31
replacement : ~
32
32
short_array_syntax : ~
33
+ space_between_label_and_link_in_doc : ~
33
34
space_between_label_and_link_in_ref : ~
34
35
typo : ~
35
36
unused_links : ~
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ Examples of unacceptable behavior by participants include:
37
37
Our Responsibilities
38
38
--------------------
39
39
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 >`,
41
41
are responsible for clarifying the standards of acceptable
42
42
behavior and are expected to take appropriate and fair corrective action in
43
43
response to any instances of unacceptable behavior.
Original file line number Diff line number Diff line change 16
16
* :doc:`Security </ contributing/code/security> `
17
17
* :doc:`Tests </ contributing/code/tests> `
18
18
* :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> `
22
22
* :doc:`License </ contributing/code/license> `
23
23
24
24
* **Documentation**
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ How to Configure Symfony to Work behind a Load Balancer or a Reverse Proxy
3
3
4
4
When you deploy your application, you may be behind a load balancer (e.g.
5
5
an AWS Elastic Load Balancing) or a reverse proxy (e.g. Varnish for
6
- :doc: `caching</http_cache> `).
6
+ :doc: `caching </http_cache >`).
7
7
8
8
For the most part, this doesn't cause any problems with Symfony. But, when
9
9
a request passes through a proxy, certain request information is sent using
Original file line number Diff line number Diff line change @@ -121,8 +121,8 @@ be executed. All the CSS files that were required will also be displayed.
121
121
The ``encore_entry_link_tags() `` and ``encore_entry_script_tags() `` functions
122
122
read from an ``entrypoints.json `` file that's generated by Encore to know the exact
123
123
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
126
126
template: the paths in ``entrypoints.json `` will always be the final, correct paths.
127
127
128
128
If you're *not * using Symfony, you can ignore the ``entrypoints.json `` file and
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ String Constraints
23
23
* :doc:`Hostname </ reference/constraints/Hostname> `
24
24
* :doc:`Ip </ reference/constraints/Ip> `
25
25
* :doc:`Json</ reference/constraints/Json> `
26
- * :doc:`Uuid</ reference/constraints/Uuid> `
26
+ * :doc:`Uuid </ reference/constraints/Uuid> `
27
27
* :doc:`UserPassword </ reference/constraints/UserPassword> `
28
28
* :doc:`NotCompromisedPassword </ reference/constraints/NotCompromisedPassword> `
29
29
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ the option. Symfony will then pass the form when calling it::
49
49
.. note::
50
50
51
51
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>`
53
53
to submit the form.
54
54
55
55
If you need advanced logic to determine the validation groups have
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ A submit button.
21
21
| | - `translation_domain `_ |
22
22
| | - `validation_groups `_ |
23
23
+----------------------+----------------------------------------------------------------------+
24
- | Parent type | :doc: `ButtonType</reference/forms/types/button> ` |
24
+ | Parent type | :doc: `ButtonType </reference/forms/types/button >` |
25
25
+----------------------+----------------------------------------------------------------------+
26
26
| Class | :class: `Symfony\\ Component\\ Form\\ Extension\\ Core\\ Type\\ SubmitType ` |
27
27
+----------------------+----------------------------------------------------------------------+
Original file line number Diff line number Diff line change @@ -128,23 +128,24 @@ interface only requires one method: ``loadUserByUsername($username)``::
128
128
// src/Repository/UserRepository.php
129
129
namespace App\Repository;
130
130
131
- use Doctrine\ORM\EntityRepository ;
131
+ use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository ;
132
132
use Symfony\Bridge\Doctrine\Security\User\UserLoaderInterface;
133
133
134
- class UserRepository extends EntityRepository implements UserLoaderInterface
134
+ class UserRepository extends ServiceEntityRepository implements UserLoaderInterface
135
135
{
136
136
// ...
137
137
138
138
public function loadUserByUsername($usernameOrEmail)
139
139
{
140
- return $this->createQuery(
140
+ $entityManager = $this->getEntityManager();
141
+
142
+ return $entityManager->createQuery(
141
143
'SELECT u
142
144
FROM App\Entity\User u
143
145
WHERE u.username = :query
144
146
OR u.email = :query'
145
147
)
146
148
->setParameter('query', $usernameOrEmail)
147
- ->getQuery()
148
149
->getOneOrNullResult();
149
150
}
150
151
}
You can’t perform that action at this time.
0 commit comments