Completed
Push — 1.x ( 0b668e...1b7ebe )
by Yuu
01:46
created

SqlLoggerModule::configure()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
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 4
    protected function configure()
19
    {
20 4
        $this->bind(SQLLogger::class)->toProvider(SqlLoggerProvider::class)->in(Scope::SINGLETON);
21 4
    }
22
}
23