Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
18 | #[Override] |
||
19 | protected function configure(): void |
||
20 | { |
||
21 | $this->bind(SemanticLoggerInterface::class)->to(SemanticLogger::class)->in(Scope::SINGLETON); |
||
22 | |||
23 | // Bind the original invoker with annotation so our adapter can inject it |
||
24 | $this->bind(InvokerInterface::class)->annotatedWith('Original')->to(Invoker::class); |
||
25 | |||
26 | // Override the default invoker with our semantic logging adapter |
||
27 | $this->bind(InvokerInterface::class)->to(SemanticResourceInvokerAdapter::class); |
||
28 | } |
||
30 |