Completed
Push — master ( 2d3077...b72a1b )
by Peter
02:16
created

AnimeDbPaginationExtension::load()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 6
ccs 5
cts 5
cp 1
rs 9.4285
cc 1
eloc 4
nc 1
nop 2
crap 1
1
<?php
2
/**
3
 * AnimeDb package
4
 *
5
 * @package   AnimeDb
6
 * @author    Peter Gribanov <[email protected]>
7
 * @copyright Copyright (c) 2011, Peter Gribanov
8
 * @license   http://opensource.org/licenses/GPL-3.0 GPL v3
9
 */
10
11
namespace AnimeDb\Bundle\PaginationBundle\DependencyInjection;
12
13
use Symfony\Component\DependencyInjection\ContainerBuilder;
14
use Symfony\Component\Config\FileLocator;
15
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
16
use Symfony\Component\DependencyInjection\Loader;
17
18
/**
19
 * DependencyInjection
20
 *
21
 * @package AnimeDb\Bundle\PaginationBundle\DependencyInjection
22
 * @author  Peter Gribanov <[email protected]>
23
 */
24
class AnimeDbPaginationExtension extends Extension
25
{
26
    /**
27
     * @param array $configs
28
     * @param ContainerBuilder $container
29
     */
30 1
    public function load(array $configs, ContainerBuilder $container)
31
    {
32 1
        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
33 1
        $loader->load('parameters.yml');
34 1
        $loader->load('services.yml');
35 1
    }
36
}
37