UserController::showAction()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace AppBundle\Controller;
4
5
use AppBundle\Entity\User;
6
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
7
8
class UserController extends Controller
9
{
10
    public function indexAction()
11
    {
12
        $users = $this->get('fos_user.user_manager')->findUsers();
13
14
        return $this->render('user/index.html.twig', array(
15
            'users' => $users,
16
        ));
17
    }
18
19
    public function showAction(User $user)
20
    {
21
        return $this->render('user/show.html.twig', array(
22
            'user' => $user,
23
        ));
24
    }
25
}
26