@@ -71,11 +71,11 @@ Use its ``getSubscribedServices()`` method to include as many services as needed
7171in the service subscriber and change the type hint of the container to
7272a PSR-11 ``ContainerInterface ``::
7373
74- // src/AppBundle/ CommandBus.php
75- namespace AppBundle ;
74+ // src/CommandBus.php
75+ namespace App ;
7676
77- use AppBundle \CommandHandler\BarHandler;
78- use AppBundle \CommandHandler\FooHandler;
77+ use App \CommandHandler\BarHandler;
78+ use App \CommandHandler\FooHandler;
7979 use Psr\Container\ContainerInterface;
8080 use Symfony\Component\DependencyInjection\ServiceSubscriberInterface;
8181
@@ -91,8 +91,8 @@ a PSR-11 ``ContainerInterface``::
9191 public static function getSubscribedServices()
9292 {
9393 return [
94- 'AppBundle \FooCommand' => FooHandler::class,
95- 'AppBundle \BarCommand' => BarHandler::class,
94+ 'App \FooCommand' => FooHandler::class,
95+ 'App \BarCommand' => BarHandler::class,
9696 ];
9797 }
9898
@@ -204,7 +204,7 @@ service type to a service.
204204
205205 // app/config/services.yml
206206 services :
207- AppBundle \CommandBus :
207+ App \CommandBus :
208208 tags :
209209 - { name: 'container.service_subscriber', key: 'logger', id: 'monolog.logger.event' }
210210
@@ -218,7 +218,7 @@ service type to a service.
218218
219219 <services >
220220
221- <service id =" AppBundle \CommandBus" >
221+ <service id =" App \CommandBus" >
222222 <tag name =" container.service_subscriber" key =" logger" id =" monolog.logger.event" />
223223 </service >
224224
@@ -228,7 +228,7 @@ service type to a service.
228228 .. code-block :: php
229229
230230 // app/config/services.php
231- use AppBundle \CommandBus;
231+ use App \CommandBus;
232232
233233 // ...
234234
0 commit comments