Code Coverage |
||||||||||||||||
Lines |
Branches |
Paths |
Functions and Methods |
Classes and Traits |
||||||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Celemas\Wire; |
| 6 | |
| 7 | use Psr\Container\ContainerInterface as Container; |
| 8 | |
| 9 | /** |
| 10 | * Required interface for containers that internally use Wire to prevent dependency cycles. |
| 11 | * |
| 12 | * When Wire is provided with a container instance for entry lookups, circular dependencies |
| 13 | * can occur if the container uses Wire for autowiring and the entry is a class name |
| 14 | * rather than an instantiated object. |
| 15 | * |
| 16 | * The `definition` method must return the raw entry value without attempting instantiation. |
| 17 | */ |
| 18 | interface WireContainer extends Container |
| 19 | { |
| 20 | public function definition(string $id): mixed; |
| 21 | } |