@@ -859,7 +859,7 @@ the following order:
859
859
Service Subscriber Trait
860
860
------------------------
861
861
862
- The :class: `Symfony\\ Contracts\\ Service\\ ServiceSubscriberTrait ` provides an
862
+ The :class: `Symfony\\ Contracts\\ Service\\ ServiceMethodsSubscriberTrait ` provides an
863
863
implementation for :class: `Symfony\\ Contracts\\ Service\\ ServiceSubscriberInterface `
864
864
that looks through all methods in your class that are marked with the
865
865
:class: `Symfony\\ Contracts\\ Service\\ Attribute\\ SubscribedService ` attribute. It
@@ -873,12 +873,12 @@ services based on type-hinted helper methods::
873
873
use Psr\Log\LoggerInterface;
874
874
use Symfony\Component\Routing\RouterInterface;
875
875
use Symfony\Contracts\Service\Attribute\SubscribedService;
876
+ use Symfony\Contracts\Service\ServiceMethodsSubscriberTrait;
876
877
use Symfony\Contracts\Service\ServiceSubscriberInterface;
877
- use Symfony\Contracts\Service\ServiceSubscriberTrait;
878
878
879
879
class MyService implements ServiceSubscriberInterface
880
880
{
881
- use ServiceSubscriberTrait ;
881
+ use ServiceMethodsSubscriberTrait ;
882
882
883
883
public function doSomething(): void
884
884
{
@@ -935,12 +935,12 @@ and compose your services with them::
935
935
// src/Service/MyService.php
936
936
namespace App\Service;
937
937
938
+ use Symfony\Contracts\Service\ServiceMethodsSubscriberTrait;
938
939
use Symfony\Contracts\Service\ServiceSubscriberInterface;
939
- use Symfony\Contracts\Service\ServiceSubscriberTrait;
940
940
941
941
class MyService implements ServiceSubscriberInterface
942
942
{
943
- use ServiceSubscriberTrait , LoggerAware, RouterAware;
943
+ use ServiceMethodsSubscriberTrait , LoggerAware, RouterAware;
944
944
945
945
public function doSomething(): void
946
946
{
@@ -977,12 +977,12 @@ Here's an example::
977
977
use Symfony\Component\DependencyInjection\Attribute\Target;
978
978
use Symfony\Component\Routing\RouterInterface;
979
979
use Symfony\Contracts\Service\Attribute\SubscribedService;
980
+ use Symfony\Contracts\Service\ServiceMethodsSubscriberTrait;
980
981
use Symfony\Contracts\Service\ServiceSubscriberInterface;
981
- use Symfony\Contracts\Service\ServiceSubscriberTrait;
982
982
983
983
class MyService implements ServiceSubscriberInterface
984
984
{
985
- use ServiceSubscriberTrait ;
985
+ use ServiceMethodsSubscriberTrait ;
986
986
987
987
public function doSomething(): void
988
988
{
0 commit comments