Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 12 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
17 | 10 | protected function configure() |
|
18 | { |
||
19 | // Class annotated with @Transactional |
||
20 | 10 | $this->bindInterceptor( |
|
21 | 10 | $this->matcher->annotatedWith(Transactional::class), |
|
22 | 10 | $this->matcher->any(), |
|
23 | 10 | [TransactionalInterceptor::class] |
|
24 | 10 | ); |
|
25 | |||
26 | // Method annotated with @Transactional |
||
27 | 10 | $this->bindInterceptor( |
|
28 | 10 | $this->matcher->any(), |
|
29 | 10 | $this->matcher->annotatedWith(Transactional::class), |
|
30 | 10 | [TransactionalInterceptor::class] |
|
31 | 10 | ); |
|
32 | 10 | } |
|
33 | } |
||
34 |