Completed
Pull Request — develop (#100)
by Laurent
04:43 queued 03:17
created

DefaultController::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Infrastructure\Controllers;
6
7
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
8
use Symfony\Component\HttpFoundation\Response;
9
use Symfony\Component\Routing\Annotation\Route;
10
11
class DefaultController extends AbstractController
12
{
13
    /**
14
     * @Route("/", name="home", methods={"GET"})
15
     */
16
    public function __invoke(): Response
17
    {
18
        return $this->render('default/index.html.twig', [
19
            'controller_name' => 'Controller',
20
        ]);
21
    }
22
}
23