Passed
Push — master ( d3c20d...737dda )
by Žilvinas
02:35
created

TemplatingController::includesAction()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 9
rs 9.6666
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
namespace AppBundle\Controller;
3
4
use AppBundle\Entity\Task;
5
use AppBundle\Form\TaskType;
6
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
7
use Symfony\Component\Form\Extension\Core\Type\DateType;
8
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
9
use Symfony\Component\Form\Extension\Core\Type\TextType;
10
use Symfony\Component\HttpFoundation\Request;
11
use Symfony\Component\Routing\Annotation\Route;
12
13
/**
14
 * @Route("/templating")
15
 */
16
class TemplatingController extends Controller
17
{
18
    /**
19
     * @Route("/includes", name="templating_includes")
20
     */
21
    public function includesAction()
22
    {
23
        return $this->render(
24
            'templating/includes.html.twig',
25
            [
26
                'name' => 'Raccoon'
27
            ]
28
        );
29
    }
30
31
    /**
32
     * @Route("/includes/with-no-context", name="templating_includes_with_no_context")
33
     */
34
    public function includesWithNoContextAction()
35
    {
36
        return $this->render(
37
            'templating/includes-with-no-context.html.twig',
38
            [
39
                'name' => 'Raccoon'
40
            ]
41
        );
42
    }
43
44
}