1 | <?php |
||
10 | class IndexController extends Controller |
||
11 | { |
||
12 | private $locale; |
||
13 | |||
14 | 2 | public function init() |
|
15 | { |
||
16 | 2 | $this->locale = $this->view->locale = $this->getParam('locale', Registry::ahoy()->get('i18n')['default_locale']); |
|
17 | 2 | $this->getTranslator()->setLocale($this->locale); |
|
|
|||
18 | 2 | } |
|
19 | |||
20 | 3 | public function indexAction() |
|
21 | { |
||
22 | 3 | if (!$this->getParam('locale')) { |
|
23 | 2 | return new Response\RedirectResponse('/' . $this->locale); |
|
24 | } |
||
25 | 2 | } |
|
26 | |||
27 | 1 | public function learnAction() |
|
31 | |||
32 | 1 | public function jsonAction() |
|
41 | } |
||
42 |
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.