Completed
Push — master ( 042640...2095c8 )
by Kévin
03:47 queued 54s
created

AnnotationDirectoryLoader   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
c 1
b 0
f 1
lcom 0
cbo 1
dl 0
loc 10
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A supports() 0 4 2
1
<?php
2
3
/*
4
 * (c) Kévin Dunglas <[email protected]>
5
 *
6
 * This source file is subject to the MIT license that is bundled
7
 * with this source code in the file LICENSE.
8
 */
9
10
namespace Dunglas\ActionBundle\Routing;
11
12
use Symfony\Component\Routing\Loader\AnnotationDirectoryLoader as BaseAnnotationDirectoryLoader;
13
14
/**
15
 * Overrides the supported type.
16
 *
17
 * @author Kévin Dunglas <[email protected]>
18
 */
19
class AnnotationDirectoryLoader extends BaseAnnotationDirectoryLoader
20
{
21
    /**
22
     * {@inheritdoc}
23
     */
24
    public function supports($resource, $type = null)
25
    {
26
        return 'action-annotation' === $type && parent::supports($resource);
27
    }
28
}
29