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

Configuration::setContainer()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
rs 10
c 1
b 0
f 0
cc 1
eloc 2
nc 1
nop 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