1 | <?php |
||
13 | abstract class AbstractCRUDController extends AbstractController |
||
14 | { |
||
15 | use CrudTrait; |
||
16 | |||
17 | /** |
||
18 | * @var PaginatorInterface |
||
19 | */ |
||
20 | protected $paginator; |
||
21 | |||
22 | /** |
||
23 | * @var UrlGeneratorInterface |
||
24 | */ |
||
25 | protected $urlGenerator; |
||
26 | |||
27 | /** |
||
28 | * @var ListingFactory |
||
29 | */ |
||
30 | protected $listingFactory; |
||
31 | |||
32 | /** |
||
33 | * @return AuthorizationCheckerInterface |
||
34 | */ |
||
35 | protected function crudAuthorizationChecker() |
||
39 | |||
40 | /** |
||
41 | * @return FormFactory |
||
42 | */ |
||
43 | protected function crudFormFactory() |
||
44 | { |
||
45 | return $this->formFactory; |
||
46 | } |
||
47 | |||
48 | /** |
||
49 | * @return ManagerRegistry |
||
50 | */ |
||
51 | protected function crudDoctrine() |
||
55 | |||
56 | /** |
||
57 | * @return PaginatorInterface |
||
58 | */ |
||
59 | protected function crudPaginator() |
||
63 | |||
64 | /** |
||
65 | * @return \Twig_Environment |
||
66 | */ |
||
67 | protected function crudTwig() |
||
71 | |||
72 | /** |
||
73 | * @return UrlGeneratorInterface |
||
74 | */ |
||
75 | protected function crudUrlGenerator() |
||
76 | { |
||
77 | return $this->urlGenerator; |
||
78 | } |
||
79 | |||
80 | /** |
||
81 | * @return ListingFactory |
||
82 | */ |
||
83 | protected function crudListingFactory() |
||
87 | |||
88 | /** |
||
89 | * @return string |
||
90 | */ |
||
91 | protected function crudTemplatePattern() |
||
95 | } |
||
96 |