FOACronExtension   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 3
dl 0
loc 11
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A load() 0 5 1
1
<?php
2
3
namespace FOA\CronBundle\DependencyInjection;
4
5
use Symfony\Component\DependencyInjection\ContainerBuilder;
6
use Symfony\Component\Config\FileLocator;
7
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
8
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
9
10
/**
11
 * @author Novikov Viktor
12
 */
13
class FOACronExtension extends Extension
14
{
15
    /**
16
     * {@inheritDoc}
17
     */
18
    public function load(array $configs, ContainerBuilder $container)
19
    {
20
        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
21
        $loader->load('services.xml');
22
    }
23
}
24