1 | <?php |
||
12 | abstract class AbstractCrudController |
||
13 | { |
||
14 | use CrudTrait; |
||
15 | |||
16 | /** |
||
17 | * @var AuthorizationCheckerInterface |
||
18 | */ |
||
19 | protected $authorizationChecker; |
||
20 | |||
21 | /** |
||
22 | * @var ManagerRegistry |
||
23 | */ |
||
24 | protected $doctrine; |
||
25 | |||
26 | /** |
||
27 | * @var FormFactoryInterface |
||
28 | */ |
||
29 | protected $formFactory; |
||
30 | |||
31 | /** |
||
32 | * @var PaginatorInterface |
||
33 | */ |
||
34 | protected $paginator; |
||
35 | |||
36 | /** |
||
37 | * @var UrlGeneratorInterface |
||
38 | */ |
||
39 | protected $urlGenerator; |
||
40 | |||
41 | /** |
||
42 | * @var \Twig_Environment |
||
43 | */ |
||
44 | protected $twig; |
||
45 | |||
46 | /** |
||
47 | * @var ListingFactory |
||
48 | */ |
||
49 | protected $listingFactory; |
||
50 | |||
51 | /** |
||
52 | * @param AuthorizationCheckerInterface $authorizationChecker |
||
53 | * @param ManagerRegistry $doctrine |
||
54 | * @param FormFactoryInterface $formFactory |
||
55 | * @param PaginatorInterface $paginator |
||
56 | * @param UrlGeneratorInterface $urlGenerator |
||
57 | * @param \Twig_Environment $twig |
||
58 | * @param ListingFactory $listingFactory |
||
59 | */ |
||
60 | public function __construct( |
||
77 | |||
78 | /** |
||
79 | * @return AuthorizationCheckerInterface |
||
80 | */ |
||
81 | protected function crudAuthorizationChecker() |
||
85 | |||
86 | /** |
||
87 | * @return ManagerRegistry |
||
88 | */ |
||
89 | protected function crudDoctrine() |
||
93 | |||
94 | /** |
||
95 | * @return PaginatorInterface |
||
96 | */ |
||
97 | protected function crudPaginator() |
||
101 | |||
102 | /** |
||
103 | * @return FormFactoryInterface |
||
104 | */ |
||
105 | protected function crudFormFactory() |
||
109 | |||
110 | /** |
||
111 | * @return UrlGeneratorInterface |
||
112 | */ |
||
113 | protected function crudUrlGenerator() |
||
117 | |||
118 | /** |
||
119 | * @return \Twig_Environment |
||
120 | */ |
||
121 | protected function crudTwig() |
||
125 | |||
126 | /** |
||
127 | * @return ListingFactory |
||
128 | */ |
||
129 | protected function crudListingFactory() |
||
133 | } |
||
134 |