ChainableKernelFileLocator::supports()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
ccs 2
cts 2
cp 1
rs 10
cc 2
eloc 2
nc 2
nop 1
crap 2
1
<?php
2
3
/*
4
 * This file is part of the puli/symfony-bridge package.
5
 *
6
 * (c) Bernhard Schussek <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Puli\SymfonyBridge\HttpKernel;
13
14
use Puli\SymfonyBridge\Config\ChainableFileLocator;
15
use Symfony\Component\HttpKernel\Config\FileLocator;
16
17
/**
18
 * @since  1.0
19
 *
20
 * @author Bernhard Schussek <[email protected]>
21
 */
22
class ChainableKernelFileLocator extends FileLocator implements ChainableFileLocator
23
{
24 1
    public function supports($path)
25
    {
26 1
        return isset($path[0]) && '@' === $path[0];
27
    }
28
}
29