Completed
Pull Request — 1.x (#4)
by Yuu
26:18
created

SqlLoggerModule::configure()   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
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * This file is part of the Ray.DoctrineOrmModule package
4
 *
5
 * @license http://opensource.org/licenses/MIT MIT
6
 */
7
namespace Ray\DoctrineOrmModule;
8
9
use Doctrine\DBAL\Logging\SQLLogger;
10
use Ray\Di\AbstractModule;
11
use Ray\Di\Scope;
12
13
class SqlLoggerModule extends AbstractModule
14
{
15
    /**
16
     * {@inheritdoc}
17
     */
18
    protected function configure()
19
    {
20
        $this->bind(SQLLogger::class)->toProvider(SqlLoggerProvider::class)->in(Scope::SINGLETON);
21
    }
22
}
23