AdminController   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 4
Bugs 0 Features 0
Metric Value
eloc 6
c 4
b 0
f 0
dl 0
loc 14
rs 10
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A indexAction() 0 9 2
1
<?php
2
3
/**
4
 * @license LGPLv3, http://www.gnu.org/copyleft/lgpl.html
5
 * @copyright Aimeos (aimeos.org), 2015-2016
6
 * @package flow
7
 * @subpackage Controller
8
 */
9
10
11
namespace Aimeos\Shop\Controller;
12
13
use Neos\Flow\Annotations as Flow;
14
15
16
/**
17
 * Controller for ExtJS adminisration interface.
18
 * @package flow
19
 * @subpackage Controller
20
 */
21
class AdminController extends \Neos\Flow\Mvc\Controller\ActionController
22
{
23
	/**
24
	 * Creates the initial HTML view for the admin interface.
25
	 */
26
	public function indexAction()
27
	{
28
		$param = array(
29
			'site' => 'default',
30
			'resource' => 'dashboard',
31
			'lang' => ( $this->request->hasArgument( 'lang' ) ? $this->request->getArgument( 'lang' ) : 'en' ),
32
		);
33
34
		$this->forward( 'search', 'jqadm', null, $param );
35
	}
36
}
37