1 | <?php |
||
2 | |||
3 | /** |
||
4 | * @license GPLv3, http://www.gnu.org/copyleft/gpl.html |
||
5 | * @copyright Aimeos (aimeos.org), 2015-2017 |
||
6 | * @package TYPO3 |
||
7 | */ |
||
8 | |||
9 | |||
10 | namespace Aimeos\Aimeos\Controller; |
||
11 | |||
12 | use TYPO3\CMS\Extbase\Http\ForwardResponse; |
||
13 | |||
14 | |||
15 | /** |
||
16 | * Controller for the admin interface |
||
17 | * |
||
18 | * @package TYPO3 |
||
19 | */ |
||
20 | class AdminController extends AbstractController |
||
21 | { |
||
22 | /** |
||
23 | * Forwards to the configured admin interface |
||
24 | */ |
||
25 | public function indexAction() |
||
26 | { |
||
27 | $site = 'default'; |
||
28 | |||
29 | if (isset($GLOBALS['BE_USER']->user['siteid']) && $GLOBALS['BE_USER']->user['siteid'] != '') { |
||
30 | $siteManager = \Aimeos\MShop::create($this->contextBackend(), 'locale/site'); |
||
31 | $siteId = current(array_reverse(explode('.', trim($GLOBALS['BE_USER']->user['siteid'], '.')))); |
||
32 | $site = ($siteId ? $siteManager->get($siteId)->getCode() : 'default'); |
||
33 | } |
||
34 | |||
35 | if (!class_exists('\TYPO3\CMS\Extbase\Http\ForwardResponse')) { |
||
36 | return $this->forward('search', 'Jqadm', null, ['site' => $site]); |
||
0 ignored issues
–
show
|
|||
37 | } |
||
38 | |||
39 | return (new ForwardResponse('search'))->withControllerName('Jqadm')->withArguments(['site' => $site]); |
||
40 | } |
||
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.