FrontController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 11
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A homepageAction() 0 6 1
1
<?php
2
3
namespace App\Controller;
4
5
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
6
7
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
8
9
use App\Manager\Community\CommunityManager;
10
use App\Manager\MemberManager;
11
use App\Manager\Project\ProjectManager;
12
13
class FrontController extends Controller
14
{
15
    /**
16
     * @Route("/", name="homepage", methods={"GET"})
17
     */
18 1
    public function homepageAction(CommunityManager $communityManager, MemberManager $memberManager, ProjectManager $projectManager)
19
    {
20 1
        return $this->render('front/homepage.html.twig', [
21 1
            'nb_camps' => $communityManager->countAll(),
22 1
            'nb_members' => $memberManager->countAll(),
23 1
            'nb_projects' => $projectManager->countAll(),
24
        ]);
25
    }
26
}
27