Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 2 |
CRAP Score | 1.3644 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | 2 | protected function configure() |
|
22 | { |
||
23 | $this->rename(RouterInterface::class, 'original'); |
||
24 | $this->bind(RouterInterface::class)->to(CliRouter::class); |
||
25 | $this->bind(TransferInterface::class)->to(CliResponder::class); |
||
26 | $stdIn = tempnam(sys_get_temp_dir(), 'stdin-' . crc32(__FILE__)); |
||
27 | $this->bind()->annotatedWith(StdIn::class)->toInstance($stdIn); |
||
28 | 2 | } |
|
29 | } |
||
30 |