1 | <?php |
||
23 | abstract class ControllerAbstract |
||
24 | { |
||
25 | /** |
||
26 | * @var EngineInterface |
||
27 | */ |
||
28 | protected $templating; |
||
29 | |||
30 | /** |
||
31 | * @var ContextManager |
||
32 | */ |
||
33 | protected $contextManager; |
||
34 | |||
35 | /** |
||
36 | * @var string |
||
37 | */ |
||
38 | protected $template; |
||
39 | |||
40 | /** |
||
41 | * @var EventDispatcherInterface |
||
42 | */ |
||
43 | private $eventDispatcher; |
||
44 | |||
45 | /** |
||
46 | * @param \Symfony\Bundle\FrameworkBundle\Templating\EngineInterface $templating |
||
47 | * @param \FSi\Bundle\AdminBundle\Admin\Context\ContextManager $contextManager |
||
48 | * @param string|null $resourceActionTemplate |
||
49 | */ |
||
50 | function __construct( |
||
59 | |||
60 | /** |
||
61 | * @param EventDispatcherInterface $eventDispatcher |
||
62 | */ |
||
63 | public function setEventDispatcher($eventDispatcher) |
||
67 | |||
68 | /** |
||
69 | * @param \FSi\Bundle\AdminBundle\Admin\Element $element |
||
70 | * @param \Symfony\Component\HttpFoundation\Request $request |
||
71 | * @param string $route |
||
72 | * @return null|\Symfony\Component\HttpFoundation\Response |
||
73 | */ |
||
74 | protected function handleRequest(Element $element, Request $request, $route) |
||
110 | } |
||
111 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.