@@ -467,9 +467,14 @@ public function testAutowireAttribute()
467
467
468
468
$ locator = $ container ->get ($ locatorId )->get ('foo::fooAction ' );
469
469
470
+ $ this ->assertCount (7 , $ locator ->getProvidedServices ());
470
471
$ this ->assertInstanceOf (\stdClass::class, $ locator ->get ('service1 ' ));
471
472
$ this ->assertSame ('foo/bar ' , $ locator ->get ('value ' ));
472
473
$ this ->assertSame ('foo ' , $ locator ->get ('expression ' ));
474
+ $ this ->assertInstanceOf (\stdClass::class, $ locator ->get ('serviceAsValue ' ));
475
+ $ this ->assertInstanceOf (\stdClass::class, $ locator ->get ('expressionAsValue ' ));
476
+ $ this ->assertSame ('bar ' , $ locator ->get ('rawValue ' ));
477
+ $ this ->assertSame ('@bar ' , $ locator ->get ('escapedRawValue ' ));
473
478
$ this ->assertFalse ($ locator ->has ('service2 ' ));
474
479
}
475
480
}
@@ -562,6 +567,14 @@ public function fooAction(
562
567
string $ value ,
563
568
#[Autowire(expression: "parameter('some.parameter') " )]
564
569
string $ expression ,
570
+ #[Autowire('@some.id ' )]
571
+ \stdClass $ serviceAsValue ,
572
+ #[Autowire("@=service('some.id') " )]
573
+ \stdClass $ expressionAsValue ,
574
+ #[Autowire('bar ' )]
575
+ string $ rawValue ,
576
+ #[Autowire('@@bar ' )]
577
+ string $ escapedRawValue ,
565
578
#[Autowire(service: 'invalid.id ' )]
566
579
\stdClass $ service2 = null ,
567
580
) {
0 commit comments