CoffreoJMSTranslationJsExtractorExtension::load()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
crap 1
1
<?php
2
3
/**
4
 * This file is part of Coffreo project "coffreo/jms-translation-js-extractor-bundle"
5
 *
6
 * (c) Coffreo SAS <[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 Coffreo\JMSTranslationJsExtractorBundle\DependencyInjection;
13
14
use Symfony\Component\Config\FileLocator;
15
use Symfony\Component\DependencyInjection\ContainerBuilder;
16
use Symfony\Component\DependencyInjection\Extension\Extension;
17
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
18
19
class CoffreoJMSTranslationJsExtractorExtension extends Extension
20
{
21 1
    public function load(array $configs, ContainerBuilder $container)
22
    {
23 1
        $loader = new YamlFileLoader($container, new FileLocator(dirname(__DIR__).'/Resources/config'));
24 1
        $loader->load('services.yml');
25 1
    }
26
}
27