Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
15 | public function factory() |
||
16 | { |
||
17 | $container = new Container(); |
||
18 | |||
19 | $container->offsetSet( |
||
20 | DomainRepositoryInterface::class, |
||
21 | new DomainRepository() |
||
22 | ); |
||
23 | |||
24 | $container->offsetSet( |
||
25 | UseCase::class, |
||
26 | new UseCase( |
||
27 | $container->get(DomainRepositoryInterface::class) |
||
28 | ) |
||
29 | ); |
||
30 | |||
31 | return $container; |
||
32 | } |
||
33 | |||
62 | } |