1 | <?php |
||
27 | class CoreController extends Controller |
||
28 | { |
||
29 | /** |
||
30 | * @return Response |
||
31 | */ |
||
32 | public function dashboardAction() |
||
58 | |||
59 | /** |
||
60 | * The search action first render an empty page, if the query is set, then the template generates |
||
61 | * some ajax request to retrieve results for each admin. The Ajax query returns a JSON response. |
||
62 | * |
||
63 | * @throws \RuntimeException |
||
64 | * |
||
65 | * @return JsonResponse|Response |
||
66 | */ |
||
67 | public function searchAction(Request $request) |
||
112 | |||
113 | /** |
||
114 | * Get the request object from the container. |
||
115 | * |
||
116 | * This method is compatible with both Symfony 2.3 and Symfony 3 |
||
117 | * |
||
118 | * NEXT_MAJOR: remove this method. |
||
119 | * |
||
120 | * @deprecated since 3.0, to be removed in 4.0 and action methods will be adjusted. |
||
121 | * Use Symfony\Component\HttpFoundation\Request as an action argument |
||
122 | * |
||
123 | * @return Request |
||
124 | */ |
||
125 | public function getRequest() |
||
135 | |||
136 | /** |
||
137 | * @return Pool |
||
138 | */ |
||
139 | protected function getAdminPool() |
||
143 | |||
144 | /** |
||
145 | * @return SearchHandler |
||
146 | */ |
||
147 | protected function getSearchHandler() |
||
148 | { |
||
149 | return $this->get('sonata.admin.search.handler'); |
||
150 | } |
||
151 | |||
152 | /** |
||
153 | * @return string |
||
154 | */ |
||
155 | protected function getBaseTemplate() |
||
156 | { |
||
157 | if ($this->getCurrentRequest()->isXmlHttpRequest()) { |
||
158 | return $this->getTemplateRegistry()->getTemplate('ajax'); |
||
159 | } |
||
160 | |||
161 | return $this->getTemplateRegistry()->getTemplate('layout'); |
||
162 | } |
||
163 | |||
164 | /** |
||
165 | * @return TemplateRegistryInterface |
||
166 | */ |
||
167 | private function getTemplateRegistry() |
||
168 | { |
||
169 | return $this->container->get('sonata.admin.global_template_registry'); |
||
170 | } |
||
171 | |||
172 | /** |
||
173 | * Get the request object from the container. |
||
174 | * |
||
175 | * @return Request |
||
176 | */ |
||
177 | private function getCurrentRequest() |
||
181 | } |
||
182 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.