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