File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \Security \Http \Attribute ;
13
13
14
+ use Symfony \Component \HttpKernel \Attribute \ValueResolver ;
15
+ use Symfony \Component \Security \Http \Controller \UserValueResolver ;
16
+
14
17
/**
15
18
* Indicates that a controller argument should receive the current logged user.
16
19
*/
17
20
#[\Attribute(\Attribute::TARGET_PARAMETER )]
18
- class CurrentUser
21
+ class CurrentUser extends ValueResolver
19
22
{
23
+ public function __construct (bool $ disabled = false , string $ resolver = UserValueResolver::class)
24
+ {
25
+ parent ::__construct ($ resolver , $ disabled );
26
+ }
20
27
}
Original file line number Diff line number Diff line change 20
20
"symfony/deprecation-contracts" : " ^2.5|^3" ,
21
21
"symfony/security-core" : " ~6.0.19|~6.1.11|^6.2.5" ,
22
22
"symfony/http-foundation" : " ^5.4|^6.0" ,
23
- "symfony/http-kernel" : " ^6.2 " ,
23
+ "symfony/http-kernel" : " ^6.3 " ,
24
24
"symfony/polyfill-mbstring" : " ~1.0" ,
25
25
"symfony/property-access" : " ^5.4|^6.0"
26
26
},
You can’t perform that action at this time.
0 commit comments