| Code Coverage
| Classes and Traits | Functions and Methods | Lines
Total |  | 0.00% | 0 / 1 |  | 50.00% | 1 / 2 | CRAP |  | 50.00% | 1 / 2
LandingController |  | 0.00% | 0 / 1 |  | 50.00% | 1 / 2 | 2.50 |  | 50.00% | 1 / 2
indexAction() |  | 100.00% | 1 / 1 | 1 |  | 100.00% | 1 / 1
aboutAction() |  | 0.00% | 0 / 1 | 2 |  | 0.00% | 0 / 1

1 | <?php
2 |
3 | namespace BodyRep\Controller;
4 |
5 | use Symfony\Bundle\FrameworkBundle\Controller\Controller;
6 |
7 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
8 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
9 | use BodyRep\Form\ContactType;
10 |
11 | class LandingController extends Controller
12 | {
13 | /**
14 | * @Route("/", name="_landing")
15 | * @Template()
16 | */
17 | public function indexAction()
18 | {
19 |
20 | /*
21 | * The action's view can be rendered using render() method
22 | * or @Template annotation as demonstrated in DemoController.
23 | *
24 | */
25 | return $this->render('BodyRep:Landing:index.html.twig');
26 | }
27 |
28 | /**
29 | * @Route("/about", name="_landing_about")
30 | * @Template()
31 | */
32 | public function aboutAction()
33 | {
34 |
35 | /*
36 | * The action's view can be rendered using render() method
37 | * or @Template annotation as demonstrated in DemoController.
38 | *
39 | */
40 | return $this->render('BodyRep:Landing:about.html.twig');
41 | }
42 | }