Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
46 | 4 | public function configure(RepositoryFactory $factory): RepositoryFactory |
|
47 | { |
||
48 | $this |
||
49 | 4 | ->repositories |
|
50 | 4 | ->foreach(function( |
|
51 | string $class, |
||
52 | Repository $repository |
||
53 | ) use ( |
||
54 | 2 | $factory |
|
55 | ) { |
||
56 | 2 | $factory->register( |
|
57 | 2 | $this->metadatas->get($class), |
|
58 | 2 | $repository |
|
59 | ); |
||
60 | 4 | }); |
|
61 | |||
62 | 4 | return $factory; |
|
63 | } |
||
65 |