DefaultController::indexAction()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
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