DefaultController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 15
rs 10
c 0
b 0
f 0

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 Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
7
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
8
9
/**
10
 * Class DefaultController
11
 */
12
class DefaultController extends Controller
13
{
14
    /**
15
     * @Route("/", name="homepage")
16
     * @Method("GET")
17
     * @return mixed
18
     */
19
    public function indexAction()
20
    {
21
        // replace this example code with whatever you need
22
        return $this->render('default/index.html.twig', [
23
            'base_dir' => realpath($this->getParameter('kernel.root_dir').'/..').DIRECTORY_SEPARATOR,
24
        ]);
25
    }
26
}
27