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

AdminController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 0
cbo 1
dl 0
loc 13
ccs 0
cts 6
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A indexAction() 0 7 1
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