1 | <?php |
||
21 | class SecuredManager implements ManagerInterface |
||
22 | { |
||
23 | /** |
||
24 | * @var ManagerInterface |
||
25 | */ |
||
26 | private $manager; |
||
27 | |||
28 | /** |
||
29 | * @var TokenStorageInterface |
||
30 | */ |
||
31 | private $tokenStorage; |
||
32 | |||
33 | /** |
||
34 | * @var AuthorizationCheckerInterface |
||
35 | */ |
||
36 | private $authorizationChecker; |
||
37 | |||
38 | public function __construct( |
||
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | public function addElement(Element $element) |
||
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | public function hasElement($id) |
||
72 | |||
73 | /** |
||
74 | * @param string $id |
||
75 | * @return \FSi\Bundle\AdminBundle\Admin\Element|null |
||
76 | * @throws \Symfony\Component\Security\Core\Exception\AccessDeniedException |
||
77 | */ |
||
78 | public function getElement($id) |
||
94 | |||
95 | /** |
||
96 | * {@inheritdoc} |
||
97 | */ |
||
98 | public function removeElement($id) |
||
102 | |||
103 | /** |
||
104 | * {@inheritdoc} |
||
105 | */ |
||
106 | public function getElements() |
||
112 | |||
113 | /** |
||
114 | * {@inheritdoc} |
||
115 | */ |
||
116 | public function accept(Visitor $visitor) |
||
120 | |||
121 | /** |
||
122 | * @param Element $element |
||
123 | * @return boolean |
||
124 | */ |
||
125 | private function isAccessToElementRestricted(Element $element) |
||
140 | |||
141 | /** |
||
142 | * @return boolean |
||
143 | */ |
||
144 | private function isUserForcedToChangePassword() |
||
157 | } |
||
158 |