TransactionalModule::configure()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 9
ccs 6
cts 6
cp 1
rs 9.9666
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
/**
3
 * This file is part of the Ray.AuraSqlModule package.
4
 *
5
 * @license http://opensource.org/licenses/MIT MIT
6
 */
7
namespace Ray\AuraSqlModule;
8
9
use Ray\AuraSqlModule\Annotation\Transactional;
10
use Ray\Di\AbstractModule;
11
12
class TransactionalModule extends AbstractModule
13
{
14
    /**
15
     * {@inheritdoc}
16
     */
17 18
    protected function configure()
18
    {
19
        // @Transactional
20 18
        $this->bindInterceptor(
21 18
            $this->matcher->any(),
22 18
            $this->matcher->annotatedWith(Transactional::class),
23 18
            [TransactionalInterceptor::class]
24
        );
25 18
    }
26
}
27