1 | <?php |
||
28 | class ImpersonateUserController |
||
29 | { |
||
30 | /** |
||
31 | * @var UserImpersonatorInterface |
||
32 | */ |
||
33 | protected $impersonator; |
||
34 | |||
35 | /** |
||
36 | * @var AuthorizationCheckerInterface |
||
37 | */ |
||
38 | protected $authorizationChecker; |
||
39 | |||
40 | /** |
||
41 | * @var UserProviderInterface |
||
42 | */ |
||
43 | protected $userProvider; |
||
44 | |||
45 | /** |
||
46 | * @var RouterInterface |
||
47 | */ |
||
48 | protected $router; |
||
49 | |||
50 | /** |
||
51 | * @var TranslatorInterface |
||
52 | */ |
||
53 | protected $translator; |
||
54 | |||
55 | /** |
||
56 | * @var string |
||
57 | */ |
||
58 | protected $authorizationRole; |
||
59 | |||
60 | /** |
||
61 | * @param UserImpersonatorInterface $impersonator |
||
62 | * @param AuthorizationCheckerInterface $authorizationChecker |
||
63 | * @param UserProviderInterface $userProvider |
||
64 | * @param RouterInterface $router |
||
65 | * @param TranslatorInterface $translator |
||
66 | * @param string $authorizationRole |
||
67 | */ |
||
68 | public function __construct( |
||
83 | |||
84 | /** |
||
85 | * @param Request $request |
||
86 | * @param string $username |
||
87 | * |
||
88 | * @return Response |
||
|
|||
89 | */ |
||
90 | public function impersonateAction(Request $request, $username) |
||
107 | |||
108 | /** |
||
109 | * @param Request $request |
||
110 | * @param string $username |
||
111 | */ |
||
112 | private function addFlash(Request $request, $username) |
||
118 | } |
||
119 |
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.