Skip to content

Commit bdaba7a

Browse files
committed
minor symfony#10932 [DependencyInjection] fix a config filename (atailouloute, xabbuh)
This PR was merged into the 4.1 branch. Discussion ---------- [DependencyInjection] fix a config filename finishes symfony#10870 Commits ------- 5dc3c4d update remaining file references fbf1daa Update 3.3-di-changes.rst
2 parents f18cbc8 + 5dc3c4d commit bdaba7a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

service_container/3.3-di-changes.rst

+6-6
Original file line numberDiff line numberDiff line change
@@ -591,11 +591,11 @@ no longer exist. The simplest way to fix this is to find all your old service id
591591
and update them to the new class id: ``app.github_notifier`` to ``App\Service\GitHubNotifier``.
592592

593593
In large projects, there's a better way: create legacy aliases that map the old id
594-
to the new id. Create a new ``legacy_aliases.yml`` file:
594+
to the new id. Create a new ``legacy_aliases.yaml`` file:
595595

596596
.. code-block:: yaml
597597
598-
# app/config/legacy_aliases.yml
598+
# config/legacy_aliases.yaml
599599
services:
600600
_defaults:
601601
public: true
@@ -611,7 +611,7 @@ Then import this at the top of ``services.yaml``:
611611
612612
# config/services.yaml
613613
+ imports:
614-
+ - { resource: legacy_aliases.yml }
614+
+ - { resource: legacy_aliases.yaml }
615615
616616
# ...
617617
@@ -635,7 +635,7 @@ Now you're ready to default all services to be private:
635635
+ public: false
636636
637637
Thanks to this, any services created in this file cannot be fetched directly from
638-
the container. But, since the old service id's are aliases in a separate file (``legacy_aliases.yml``),
638+
the container. But, since the old service id's are aliases in a separate file (``legacy_aliases.yaml``),
639639
these *are* still public. This makes sure the app keeps working.
640640

641641
If you did *not* change the id of some of your services (because there are multiple
@@ -723,7 +723,7 @@ Step 5) Cleanup!
723723

724724
To make sure your application didn't break, you did some extra work. Now it's time
725725
to clean things up! First, update your application to *not* use the old service id's (the
726-
ones in ``legacy_aliases.yml``). This means updating any service arguments (e.g.
726+
ones in ``legacy_aliases.yaml``). This means updating any service arguments (e.g.
727727
``@app.github_notifier`` to ``@App\Service\GitHubNotifier``) and updating your
728728
code to not fetch this service directly from the container. For example:
729729

@@ -739,7 +739,7 @@ code to not fetch this service directly from the container. For example:
739739
// ...
740740
}
741741
742-
As soon as you do this, you can delete ``legacy_aliases.yml`` and remove its import.
742+
As soon as you do this, you can delete ``legacy_aliases.yaml`` and remove its import.
743743
You should do the same thing for any services that you made public, like
744744
``app.api_client_github`` and ``app.api_client_sl_connect``. Once you're not fetching
745745
these directly from the container, you can remove the ``public: true`` flag:

0 commit comments

Comments
 (0)