@@ -299,35 +299,35 @@ the ``decoration_priority`` option. Its value is an integer that defaults to
299299
300300.. configuration-block ::
301301
302- .. code-block :: php-attributes
302+ .. code-block :: php-attributes
303303
304- // ...
305- use Symfony\Component\DependencyInjection\Attribute\AsDecorator;
306- use Symfony\Component\DependencyInjection\Attribute\AutowireDecorated;
304+ // ...
305+ use Symfony\Component\DependencyInjection\Attribute\AsDecorator;
306+ use Symfony\Component\DependencyInjection\Attribute\AutowireDecorated;
307307
308- #[AsDecorator(decorates: Foo::class, priority: 5)]
309- class Bar
310- {
311- public function __construct(
312- #[AutowireDecorated]
313- private $inner,
314- ) {
315- }
316- // ...
308+ #[AsDecorator(decorates: Foo::class, priority: 5)]
309+ class Bar
310+ {
311+ public function __construct(
312+ #[AutowireDecorated]
313+ private $inner,
314+ ) {
317315 }
316+ // ...
317+ }
318318
319- #[AsDecorator(decorates: Foo::class, priority: 1)]
320- class Baz
321- {
322- public function __construct(
323- #[AutowireDecorated]
324- private $inner,
325- ) {
326- }
327-
328- // ...
319+ #[AsDecorator(decorates: Foo::class, priority: 1)]
320+ class Baz
321+ {
322+ public function __construct(
323+ #[AutowireDecorated]
324+ private $inner,
325+ ) {
329326 }
330327
328+ // ...
329+ }
330+
331331 .. code-block :: yaml
332332
333333 # config/services.yaml
@@ -619,24 +619,24 @@ Three different behaviors are available:
619619
620620.. configuration-block ::
621621
622- .. code-block :: php-attributes
623-
624- // ...
625- use Symfony\Component\DependencyInjection\Attribute\AsDecorator;
626- use Symfony\Component\DependencyInjection\Attribute\AutowireDecorated;
627- use Symfony\Component\DependencyInjection\ContainerInterface;
622+ .. code-block :: php-attributes
628623
629- #[AsDecorator(decorates: Mailer::class, onInvalid: ContainerInterface::IGNORE_ON_INVALID_REFERENCE)]
630- class Bar
631- {
632- public function __construct(
633- #[AutowireDecorated] private $inner,
634- ) {
635- }
624+ // ...
625+ use Symfony\Component\DependencyInjection\Attribute\AsDecorator;
626+ use Symfony\Component\DependencyInjection\Attribute\AutowireDecorated;
627+ use Symfony\Component\DependencyInjection\ContainerInterface;
636628
637- // ...
629+ #[AsDecorator(decorates: Mailer::class, onInvalid: ContainerInterface::IGNORE_ON_INVALID_REFERENCE)]
630+ class Bar
631+ {
632+ public function __construct(
633+ #[AutowireDecorated] private $inner,
634+ ) {
638635 }
639636
637+ // ...
638+ }
639+
640640 .. code-block :: yaml
641641
642642 # config/services.yaml
0 commit comments