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 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 : ~
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ Examples of unacceptable behavior by participants include:
3737Our 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 >`,
4141are responsible for clarifying the standards of acceptable
4242behavior and are expected to take appropriate and fair corrective action in
4343response to any instances of unacceptable behavior.
Original file line number Diff line number Diff line change 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**
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
33
44When you deploy your application, you may be behind a load balancer (e.g.
55an AWS Elastic Load Balancing) or a reverse proxy (e.g. Varnish for
6- :doc: `caching</http_cache> `).
6+ :doc: `caching </http_cache >`).
77
88For the most part, this doesn't cause any problems with Symfony. But, when
99a 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.
121121The ``encore_entry_link_tags() `` and ``encore_entry_script_tags() `` functions
122122read from an ``entrypoints.json `` file that's generated by Encore to know the exact
123123filename(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
126126template: the paths in ``entrypoints.json `` will always be the final, correct paths.
127127
128128If 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
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
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::
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
Original file line number Diff line number Diff 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+----------------------+----------------------------------------------------------------------+
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments