1 | <?php |
||
15 | abstract class AbstractController |
||
16 | { |
||
17 | /** |
||
18 | * @var ManagerRegistry |
||
19 | */ |
||
20 | protected $doctrine; |
||
21 | |||
22 | /** |
||
23 | * @var \Twig_Environment |
||
24 | */ |
||
25 | protected $twig; |
||
26 | |||
27 | /** |
||
28 | * @var FormFactoryInterface |
||
29 | */ |
||
30 | protected $formFactory; |
||
31 | |||
32 | /** |
||
33 | * @var AuthorizationCheckerInterface |
||
34 | */ |
||
35 | protected $authorizationChecker; |
||
36 | |||
37 | /** |
||
38 | * @var TokenStorageInterface |
||
39 | */ |
||
40 | protected $tokenStorage; |
||
41 | |||
42 | /** |
||
43 | * @return User |
||
44 | * @throws \Exception |
||
45 | */ |
||
46 | protected function getUser() |
||
66 | |||
67 | /** |
||
68 | * @return ManagerRegistry |
||
69 | */ |
||
70 | protected function getDoctrine() |
||
74 | |||
75 | /** |
||
76 | * @param string $class |
||
77 | * @return ObjectManager|null |
||
78 | */ |
||
79 | protected function getManagerForClass($class) |
||
83 | |||
84 | /** |
||
85 | * @param string $class |
||
86 | * @return ObjectRepository |
||
87 | */ |
||
88 | protected function getRepositoryForClass($class) |
||
92 | |||
93 | /** |
||
94 | * @param $view |
||
95 | * @param array $parameters |
||
96 | * @return Response |
||
97 | */ |
||
98 | protected function render($view, array $parameters = array()) |
||
102 | |||
103 | /** |
||
104 | * @param string $type |
||
105 | * @param null $data |
||
106 | * @param array $options |
||
107 | * @return FormInterface |
||
108 | */ |
||
109 | protected function createForm($type = 'form', $data = null, array $options = array()) |
||
113 | } |