Completed
Pull Request — master (#141)
by Evgenij
02:04
created

Configuration   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 31
rs 10
c 1
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setContainer() 0 4 1
A configure() 0 4 1
1
<?php
2
3
namespace Liip\MonitorBundle\DoctrineMigrations;
4
5
use Doctrine\DBAL\Migrations\Configuration\Configuration as BaseConfiguration;
6
use Symfony\Component\DependencyInjection\ContainerInterface;
7
use Doctrine\Bundle\MigrationsBundle\Command\DoctrineCommand;
8
9
/**
10
 * Class Configuration
11
 */
12
class Configuration extends BaseConfiguration
13
{
14
    /**
15
     * Service container
16
     *
17
     * @var ContainerInterface
18
     */
19
    private $container;
20
21
    /**
22
     * Set service container
23
     *
24
     * @param ContainerInterface $container Service container
25
     *
26
     * @return void
27
     */
28
    public function setContainer(ContainerInterface $container)
29
    {
30
        $this->container = $container;
31
    }
32
33
    /**
34
     * Tune this configuration parameters according to migrations bundle
35
     *
36
     * @return void
37
     */
38
    public function configure()
39
    {
40
        DoctrineCommand::configureMigrations($this->container, $this);
41
    }
42
}
43