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
3declare(strict_types=1);
4
5namespace Celemas\Wire;
6
7use 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 */
18interface WireContainer extends Container
19{
20    public function definition(string $id): mixed;
21}