1 | <?php |
||
16 | abstract class AbstractController implements DiProviderInterface |
||
17 | { |
||
18 | /** The web request being made. */ |
||
19 | private $request; |
||
20 | |||
21 | /** The array of view context variables. */ |
||
22 | protected $viewContext; |
||
23 | |||
24 | /** The handler being used by the router. */ |
||
25 | protected $handler; |
||
26 | |||
27 | /** |
||
28 | * This method is called before invoking any specific controller action. |
||
29 | * Override this method to provide your own logic for the subclass but |
||
30 | * ensure you make a call to parent::initialize() as well. |
||
31 | * @param HttpRequest $request The web request being made. |
||
32 | * @param AbstractRequestHandler $handler The handler the router is using. |
||
33 | * @return AbstractController Returns $this. |
||
34 | */ |
||
35 | 10 | public function initialize(HttpRequest $request, AbstractRequestHandler $handler) |
|
42 | |||
43 | /** |
||
44 | * Renders the view for the given controller and action. |
||
45 | * @param array $viewVariables An array of additional parameters to add |
||
46 | * to the existing view context. |
||
47 | * @param string $template The name of the view template. |
||
48 | * @return Returns the rendered view as a string. |
||
49 | */ |
||
50 | 2 | public function renderView($viewVariables, $template) |
|
62 | |||
63 | /** |
||
64 | * Returns the request object. |
||
65 | * @return HttpRequest The request object. |
||
66 | */ |
||
67 | 1 | public function getRequest() |
|
71 | |||
72 | /** |
||
73 | * Returns the view context. |
||
74 | * @return array The view context. |
||
75 | */ |
||
76 | 3 | public function getViewContext() |
|
80 | |||
81 | /** |
||
82 | * Retrieve an element from the DI container. |
||
83 | * @param string $key The DI key. |
||
84 | * @param boolean $useCache (optional) An optional indicating whether we |
||
85 | * should use the cached version of the element (true by default). |
||
86 | * @return mixed Returns the DI element mapped to that key. |
||
87 | */ |
||
88 | 1 | public function get($key, $useCache = true) |
|
92 | |||
93 | /** |
||
94 | * Sets an element in the DI container for the specified key. |
||
95 | * @param string $key The DI key. |
||
96 | * @param mixed $element The DI element to store. |
||
97 | * @return Di Returns the Di instance. |
||
98 | */ |
||
99 | 1 | public function set($key, $element) |
|
103 | } |
||
104 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.