Total Complexity | 2 |
Total Lines | 16 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class LazyMiddlewareFactory |
||
9 | { |
||
10 | /** @var ContainerInterface */ |
||
11 | private $container; |
||
12 | |||
13 | 1 | public function __construct(ContainerInterface $container) |
|
14 | { |
||
15 | 1 | $this->container = $container; |
|
16 | 1 | } |
|
17 | |||
18 | /** |
||
19 | * Create a lazy middleware instance |
||
20 | */ |
||
21 | 1 | public function defer(string $middleware): LazyMiddleware |
|
24 | } |
||
25 | } |
||
26 |