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

AnnotationFileLoader::supports()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 2
eloc 2
nc 2
nop 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\AnnotationFileLoader as BaseAnnotationFileLoader;
13
14
/**
15
 * Overrides the supported type.
16
 *
17
 * @author Kévin Dunglas <[email protected]>
18
 */
19
class AnnotationFileLoader extends BaseAnnotationFileLoader
20
{
21
    /**
22
     * {@inheritdoc}
23
     */
24
    public function supports($resource, $type = null)
25
    {
26
        return 'action-annotation' === $type && parent::supports($resource);
27
    }
28
}
29