File tree Expand file tree Collapse file tree 2 files changed +15
-8
lines changed
Expand file tree Collapse file tree 2 files changed +15
-8
lines changed Original file line number Diff line number Diff line change 3434
3535 <tag name =" kernel.event_listener" event =" kernel.controller" method =" __invoke" />
3636 </service >
37-
38- <instanceof id =" Psr\Http\Server\RequestHandlerInterface" >
39- <tag name =" controller.service_arguments" />
40- </instanceof >
41-
42- <instanceof id =" Psr\Http\Server\MiddlewareInterface" >
43- <tag name =" elissa.middleware" />
44- </instanceof >
4537 </services >
4638</container >
Original file line number Diff line number Diff line change 55namespace Carthage \ElissaBundle ;
66
77use Carthage \ElissaBundle \DependencyInjection \ElissaExtension ;
8+ use Psr \Http \Server \MiddlewareInterface ;
9+ use Psr \Http \Server \RequestHandlerInterface ;
10+ use Symfony \Component \DependencyInjection \ContainerBuilder ;
811use Symfony \Component \DependencyInjection \Extension \ExtensionInterface ;
912use Symfony \Component \HttpKernel \Bundle \Bundle ;
1013
@@ -17,6 +20,18 @@ public function __construct(
1720 ) {
1821 }
1922
23+ public function build (ContainerBuilder $ container ): void
24+ {
25+ parent ::build ($ container );
26+
27+ $ container ->registerForAutoconfiguration (RequestHandlerInterface::class)
28+ ->addTag ('controller.service_arguments ' );
29+
30+ $ container ->registerForAutoconfiguration (MiddlewareInterface::class)
31+ ->addTag ('elissa.middleware ' )
32+ ;
33+ }
34+
2035 public function getContainerExtension (): ExtensionInterface
2136 {
2237 return new ElissaExtension ($ this ->alias );
You can’t perform that action at this time.
0 commit comments