NestedRoutingLoader::supports()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
<?php
2
3
namespace Admingenerator\GeneratorBundle\Routing;
4
5
class NestedRoutingLoader extends RoutingLoader
6
{
7
    public function load($resource, $type = null)
8
    {
9
        $this->actions['nested_move'] = array(
10
            'path'         => '/nested-move/{dragged}/{action}/{dropped}',
11
            'defaults'     => array(),
12
            'requirements' => array(),
13
            'methods'      => array('GET'),
14
            'controller'   => 'list',
15
        );
16
17
        return parent::load($resource, $type);
18
    }
19
20
    public function supports($resource, $type = null)
21
    {
22
        return 'admingenerator_nested' == $type;
23
    }
24
}
25