Completed
Pull Request — master (#244)
by Łukasz
09:35
created

ListController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 13
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A listAction() 0 4 1
1
<?php
2
3
/**
4
 * (c) FSi sp. z o.o. <[email protected]>
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
namespace FSi\Bundle\AdminBundle\Controller;
11
12
use FSi\Bundle\AdminBundle\Admin\CRUD\ListElement;
13
use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
14
use Symfony\Component\HttpFoundation\Request;
15
16
class ListController extends ControllerAbstract
17
{
18
    /**
19
     * @ParamConverter("element", class="\FSi\Bundle\AdminBundle\Admin\CRUD\ListElement")
20
     * @param \FSi\Bundle\AdminBundle\Admin\CRUD\ListElement $element
21
     * @param \Symfony\Component\HttpFoundation\Request $request
22
     * @return \Symfony\Component\HttpFoundation\Response
23
     */
24
    public function listAction(ListElement $element, Request $request)
25
    {
26
        return $this->handleRequest($element, $request, 'fsi_admin_list');
27
    }
28
}
29