Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf8d5dca

Browse files
committed
Rename InnerService to MapDecorated
1 parent2aa3b65 commitf8d5dca

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

‎service_container/service_decoration.rst‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -146,14 +146,14 @@ automatically changed to ``'.inner'``):
146146
147147
// ...
148148
use Symfony\Component\DependencyInjection\Attribute\AsDecorator;
149-
use Symfony\Component\DependencyInjection\Attribute\InnerService;
149+
use Symfony\Component\DependencyInjection\Attribute\MapDecorated;
150150
151151
#[AsDecorator(decorates: Mailer::class)]
152152
class DecoratingMailer
153153
{
154154
private $inner;
155155
156-
public function __construct(#[InnerService] $inner)
156+
public function __construct(#[MapDecorated] $inner)
157157
{
158158
$this->inner = $inner;
159159
}
@@ -289,14 +289,14 @@ the ``decoration_priority`` option. Its value is an integer that defaults to
289289
290290
// ...
291291
use Symfony\Component\DependencyInjection\Attribute\AsDecorator;
292-
use Symfony\Component\DependencyInjection\Attribute\InnerService;
292+
use Symfony\Component\DependencyInjection\Attribute\MapDecorated;
293293
294294
#[AsDecorator(decorates: Foo::class, priority: 5)]
295295
class Bar
296296
{
297297
private $inner;
298298
299-
public function __construct(#[InnerService] $inner)
299+
public function __construct(#[MapDecorated] $inner)
300300
{
301301
$this->inner = $inner;
302302
}
@@ -308,7 +308,7 @@ the ``decoration_priority`` option. Its value is an integer that defaults to
308308
{
309309
private $inner;
310310
311-
public function __construct(#[InnerService] $inner)
311+
public function __construct(#[MapDecorated] $inner)
312312
{
313313
$this->inner = $inner;
314314
}
@@ -395,15 +395,15 @@ Three different behaviors are available:
395395
396396
// ...
397397
use Symfony\Component\DependencyInjection\Attribute\AsDecorator;
398-
use Symfony\Component\DependencyInjection\Attribute\InnerService;
398+
use Symfony\Component\DependencyInjection\Attribute\MapDecorated;
399399
use Symfony\Component\DependencyInjection\ContainerInterface;
400400
401401
#[AsDecorator(decorates: Mailer::class, onInvalid: ContainerInterface::IGNORE_ON_INVALID_REFERENCE)]
402402
class Bar
403403
{
404404
private $inner;
405405
406-
public function __construct(#[InnerService] $inner)
406+
public function __construct(#[MapDecorated] $inner)
407407
{
408408
$this->inner = $inner;
409409
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp