@@ -146,14 +146,14 @@ automatically changed to ``'.inner'``):
146
146
147
147
// ...
148
148
use Symfony\Component\DependencyInjection\Attribute\AsDecorator;
149
- use Symfony\Component\DependencyInjection\Attribute\InnerService ;
149
+ use Symfony\Component\DependencyInjection\Attribute\MapDecorated ;
150
150
151
151
#[AsDecorator(decorates: Mailer::class)]
152
152
class DecoratingMailer
153
153
{
154
154
private $inner;
155
155
156
- public function __construct(#[InnerService ] $inner)
156
+ public function __construct(#[MapDecorated ] $inner)
157
157
{
158
158
$this->inner = $inner;
159
159
}
@@ -289,14 +289,14 @@ the ``decoration_priority`` option. Its value is an integer that defaults to
289
289
290
290
// ...
291
291
use Symfony\Component\DependencyInjection\Attribute\AsDecorator;
292
- use Symfony\Component\DependencyInjection\Attribute\InnerService ;
292
+ use Symfony\Component\DependencyInjection\Attribute\MapDecorated ;
293
293
294
294
#[AsDecorator(decorates: Foo::class, priority: 5)]
295
295
class Bar
296
296
{
297
297
private $inner;
298
298
299
- public function __construct(#[InnerService ] $inner)
299
+ public function __construct(#[MapDecorated ] $inner)
300
300
{
301
301
$this->inner = $inner;
302
302
}
@@ -308,7 +308,7 @@ the ``decoration_priority`` option. Its value is an integer that defaults to
308
308
{
309
309
private $inner;
310
310
311
- public function __construct(#[InnerService ] $inner)
311
+ public function __construct(#[MapDecorated ] $inner)
312
312
{
313
313
$this->inner = $inner;
314
314
}
@@ -395,15 +395,15 @@ Three different behaviors are available:
395
395
396
396
// ...
397
397
use Symfony\Component\DependencyInjection\Attribute\AsDecorator;
398
- use Symfony\Component\DependencyInjection\Attribute\InnerService ;
398
+ use Symfony\Component\DependencyInjection\Attribute\MapDecorated ;
399
399
use Symfony\Component\DependencyInjection\ContainerInterface;
400
400
401
401
#[AsDecorator(decorates: Mailer::class, onInvalid: ContainerInterface::IGNORE_ON_INVALID_REFERENCE)]
402
402
class Bar
403
403
{
404
404
private $inner;
405
405
406
- public function __construct(#[InnerService ] $inner)
406
+ public function __construct(#[MapDecorated ] $inner)
407
407
{
408
408
$this->inner = $inner;
409
409
}
0 commit comments