Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
25 | 6 | protected function configure(): void |
|
26 | 6 | { |
|
27 | 6 | $this->rename(RouterInterface::class, 'original'); |
|
28 | 6 | $this->bind(RouterInterface::class)->to(CliRouter::class); |
|
29 | 6 | $this->bind(TransferInterface::class)->to(CliResponder::class); |
|
30 | $this->bind(HttpCacheInterface::class)->to(CliHttpCache::class); |
||
31 | $stdIn = tempnam(sys_get_temp_dir(), 'stdin-' . crc32(__FILE__)); |
||
32 | $this->bind()->annotatedWith(StdIn::class)->toInstance($stdIn); |
||
33 | } |
||
35 |