File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Bridge \Doctrine \Attribute ;
13
13
14
+ use Symfony \Bridge \Doctrine \ArgumentResolver \EntityValueResolver ;
15
+ use Symfony \Component \HttpKernel \Attribute \ValueResolver ;
16
+
14
17
/**
15
18
* Indicates that a controller argument should receive an Entity.
16
19
*/
17
20
#[\Attribute(\Attribute::TARGET_PARAMETER )]
18
- class MapEntity
21
+ class MapEntity extends ValueResolver
19
22
{
20
23
public function __construct (
21
24
public ?string $ class = null ,
@@ -26,8 +29,10 @@ public function __construct(
26
29
public ?bool $ stripNull = null ,
27
30
public array |string |null $ id = null ,
28
31
public ?bool $ evictCache = null ,
29
- public bool $ disabled = false ,
32
+ bool $ disabled = false ,
33
+ string $ resolver = EntityValueResolver::class,
30
34
) {
35
+ parent ::__construct ($ resolver , $ disabled );
31
36
}
32
37
33
38
public function withDefaults (self $ defaults , ?string $ class ): static
Original file line number Diff line number Diff line change 30
30
"symfony/config" : " ^5.4|^6.0" ,
31
31
"symfony/dependency-injection" : " ^6.2" ,
32
32
"symfony/form" : " ^5.4.21|^6.2.7" ,
33
- "symfony/http-kernel" : " ^6.2 " ,
33
+ "symfony/http-kernel" : " ^6.3 " ,
34
34
"symfony/messenger" : " ^5.4|^6.0" ,
35
35
"symfony/doctrine-messenger" : " ^5.4|^6.0" ,
36
36
"symfony/property-access" : " ^5.4|^6.0" ,
You can’t perform that action at this time.
0 commit comments