Skip to content

Commit 233174e

Browse files
committed
Merge branch '2.8' into 3.4
* 2.8: Missing root node in yaml example Fix a typo in security/impersonating_user.rst
2 parents 09b1a7a + 060649c commit 233174e

File tree

2 files changed

+16
-15
lines changed

2 files changed

+16
-15
lines changed

components/config/definition.rst

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,21 @@ be a boolean value"):
1818

1919
.. code-block:: yaml
2020
21-
auto_connect: true
22-
default_connection: mysql
23-
connections:
24-
mysql:
25-
host: localhost
26-
driver: mysql
27-
username: user
28-
password: pass
29-
sqlite:
30-
host: localhost
31-
driver: sqlite
32-
memory: true
33-
username: user
34-
password: pass
21+
database:
22+
auto_connect: true
23+
default_connection: mysql
24+
connections:
25+
mysql:
26+
host: localhost
27+
driver: mysql
28+
username: user
29+
password: pass
30+
sqlite:
31+
host: localhost
32+
driver: sqlite
33+
memory: true
34+
username: user
35+
password: pass
3536
3637
When loading multiple configuration files, it should be possible to merge
3738
and overwrite some values. Other values should not be merged and stay as

security/impersonating_user.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ to show a link to exit impersonation:
9696

9797
In some cases you may need to get the object that represents the impersonator
9898
user rather than the impersonated user. Use the following snippet to iterate
99-
over the user's roles until you find one that a ``SwitchUserRole`` object::
99+
over the user's roles until you find one that is a ``SwitchUserRole`` object::
100100

101101
use Symfony\Component\Security\Core\Role\SwitchUserRole;
102102
use Symfony\Component\Security\Core\Security;

0 commit comments

Comments
 (0)