Completed
Pull Request — master (#2)
by Andrew
02:39
created

AdminController::indexAction()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 7
ccs 0
cts 6
cp 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 2
1
<?php
2
3
namespace AppBundle\Controller;
4
5
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
6
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
7
use Symfony\Component\HttpFoundation\Request;
8
9
/**
10
 * @Route("/admin")
11
 */
12
class AdminController extends Controller
13
{
14
    /**
15
     * @Route("/", name="admin_index")
16
     */
17
    public function indexAction(Request $request)
18
    {
19
        // replace this example code with whatever you need
20
        return $this->render('AppBundle::admin/index.html.twig', array(
21
            'base_dir' => realpath($this->getParameter('kernel.root_dir').'/..'),
22
        ));
23
    }
24
}
25