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

SqlLoggerModule   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 2
dl 0
loc 10
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A configure() 0 4 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