Skip to content

Commit 37aef52

Browse files
committed
Merge branch '3.4' into 4.1
* 3.4: Update 3.3-di-changes.rst Fix link for webpack encore Missing root node in yaml example Fix a typo in security/impersonating_user.rst
2 parents 3ff9dd7 + 233174e commit 37aef52

File tree

4 files changed

+27
-16
lines changed

4 files changed

+27
-16
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

deployment.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ setup:
179179
* Running any database migrations
180180
* Clearing your APC cache
181181
* Add/edit CRON jobs
182-
* ref:`Building and minifying your assets <how-do-i-deploy-my-encore-assets>` with Webpack Encore
182+
* :ref:`Building and minifying your assets <how-do-i-deploy-my-encore-assets>` with Webpack Encore
183183
* Pushing assets to a CDN
184184
* ...
185185

security/impersonating_user.rst

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

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

9696
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
9797
use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface;

service_container/3.3-di-changes.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,14 @@ Start by updating the service ids to class names:
578578
Furthermore it is always recommended to check for definition existence
579579
using ``has()`` function.
580580

581+
.. note::
582+
583+
If you get rid of deprecations and make your controllers extend from
584+
``AbstractController`` instead of ``Controller``, you can skip the rest of
585+
this step because ``AbstractController`` doesn't provide a container where
586+
you can get the services from. All services need to be injected as explained
587+
in the :ref:`step 5 of this article <step-5>`.
588+
581589
But, this change will break our app! The old service ids (e.g. ``app.github_notifier``)
582590
no longer exist. The simplest way to fix this is to find all your old service ids
583591
and update them to the new class id: ``app.github_notifier`` to ``App\Service\GitHubNotifier``.
@@ -708,6 +716,8 @@ will be used. If you *don't* have this, the auto-registration feature will try t
708716
register a third ``ApiClient`` service and use that for autowiring (which will fail,
709717
because the class has a non-autowireable argument).
710718

719+
.. _step-5:
720+
711721
Step 5) Cleanup!
712722
~~~~~~~~~~~~~~~~
713723

0 commit comments

Comments
 (0)