File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -535,6 +535,14 @@ Start by updating the service ids to class names:
535
535
app.api_client_sl_connect:
536
536
# ...
537
537
538
+ .. caution ::
539
+
540
+ Services associated with global PHP classes (i.e. not using PHP namespaces)
541
+ must maintain the ``class `` parameter. For example, when using the old Twig
542
+ classes (e.g. ``Twig_Extensions_Extension_Intl `` instead of ``Twig\Extensions\IntlExtension ``)
543
+ you can't redefine the service as `Twig_Extensions_Extension_Intl: ~ ` and
544
+ you must keep the original ``class `` parameter.
545
+
538
546
But, this change will break our app! The old service ids (e.g. ``app.github_notifier ``)
539
547
no longer exist. The simplest way to fix this is to find all your old service ids
540
548
and update them to the new class id: ``app.github_notifier `` to ``AppBundle\Service\GitHubNotifier ``.
@@ -628,7 +636,7 @@ You're now ready to automatically register all services in ``src/AppBundle/``
628
636
+ AppBundle\:
629
637
+ resource: '../../src/AppBundle/*'
630
638
+ exclude: '../../src/AppBundle/{Entity,Repository}'
631
- +
639
+ +
632
640
+ AppBundle\Controller\:
633
641
+ resource: '../../src/AppBundle/Controller'
634
642
+ public: true
You can’t perform that action at this time.
0 commit comments