| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 35 | private function createDefinition(string $name, array $config): Definition |
||
| 36 | 3 | { |
|
| 37 | $definition = new Definition(); |
||
| 38 | 3 | ||
| 39 | $definition |
||
| 40 | ->setClass(Dictionary::class) |
||
| 41 | 3 | ->setFactory([ |
|
| 42 | 3 | new Reference(Aggregate::class), |
|
| 43 | 3 | 'create', |
|
| 44 | 3 | ]) |
|
| 45 | ->addArgument($name) |
||
| 46 | 3 | ->addArgument($config) |
|
| 47 | 3 | ->addTag(DictionaryRegistrationPass::TAG_DICTIONARY) |
|
| 48 | 3 | ; |
|
| 49 | |||
| 50 | return $definition; |
||
| 51 | 3 | } |
|
| 53 |