Skip to content

Navigation Menu

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

Appearance settings

Commit ee10a49

Browse filesBrowse files
committed
Use property promotion
1 parent 84d56d9 commit ee10a49
Copy full SHA for ee10a49

File tree

1 file changed

+3
-5
lines changed
Filter options

1 file changed

+3
-5
lines changed

‎src/Symfony/Component/Security/Core/Authorization/UserAuthorizationChecker.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/Core/Authorization/UserAuthorizationChecker.php
+3-5Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,9 @@
1919
*/
2020
final class UserAuthorizationChecker implements UserAuthorizationCheckerInterface
2121
{
22-
private AccessDecisionManagerInterface $accessDecisionManager;
23-
24-
public function __construct(AccessDecisionManagerInterface $accessDecisionManager)
25-
{
26-
$this->accessDecisionManager = $accessDecisionManager;
22+
public function __construct(
23+
private readonly AccessDecisionManagerInterface $accessDecisionManager,
24+
) {
2725
}
2826

2927
public function userIsGranted(UserInterface $user, mixed $attribute, mixed $subject = null): bool

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.