1 | <?php |
||
19 | class UserAwareComponent implements ContainerAwareInterface |
||
20 | { |
||
21 | use ServiceContainerGetterMethods; |
||
22 | use ContainerAwareTrait; |
||
23 | |||
24 | /** |
||
25 | * @return \Symfony\Component\DependencyInjection\ContainerInterface |
||
26 | */ |
||
27 | protected function getContainer() |
||
31 | |||
32 | /** |
||
33 | * Get a user from the Security Context |
||
34 | * |
||
35 | * @return mixed |
||
36 | * @throws \LogicException If SecurityBundle is not available |
||
37 | */ |
||
38 | public function getUser() |
||
54 | |||
55 | /** |
||
56 | * @return mixed |
||
57 | */ |
||
58 | final protected function getImpersonatingUser() |
||
70 | |||
71 | /** |
||
72 | * @return string |
||
73 | */ |
||
74 | public function getUsername() |
||
84 | |||
85 | /** |
||
86 | * @return string |
||
87 | */ |
||
88 | protected function getAnonymousUserName() |
||
98 | |||
99 | /** |
||
100 | * @param $token |
||
101 | * @param null $user |
||
102 | * @return mixed |
||
103 | */ |
||
104 | protected function getImpersonatingUserFromRole($token, $user = null) |
||
115 | } |
||
116 |