1 | <?php |
||
19 | abstract class AbstractViewableAction extends AbstractAction |
||
20 | { |
||
21 | /** |
||
22 | * @var EngineInterface |
||
23 | */ |
||
24 | protected $templating; |
||
25 | |||
26 | /** |
||
27 | * @param ActionFactory $actionFactory |
||
28 | * @param ActionEventManager $eventManager |
||
29 | * @param ManagerRegistry $managerRegistry |
||
30 | * @param RouterInterface $router |
||
31 | * @param TranslatorInterface $translator |
||
32 | * @param EngineInterface $templating |
||
33 | */ |
||
34 | public function __construct( |
||
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | public function doExecute(Request $request) |
||
58 | |||
59 | /** |
||
60 | * @param array $templateVars |
||
61 | * |
||
62 | * @return Response |
||
63 | */ |
||
64 | public function renderResponse(array $templateVars = []) |
||
74 | |||
75 | /** |
||
76 | * Returns the default template vars |
||
77 | * |
||
78 | * @return array |
||
79 | */ |
||
80 | protected function getDefaultTemplateVars() |
||
93 | |||
94 | /** |
||
95 | * {@inheritdoc} |
||
96 | */ |
||
97 | protected function setDefaultOptions(OptionsResolver $resolver) |
||
104 | } |
||
105 |