| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 12 |
| CRAP Score | 1 |
| Changes | 3 | ||
| Bugs | 2 | Features | 0 |
| 1 | <?php |
||
| 20 | 1 | public function loadConfiguration() |
|
| 21 | { |
||
| 22 | 1 | $builder = $this->getContainerBuilder(); |
|
| 23 | |||
| 24 | 1 | $builder->addDefinition($this->prefix('cache')) |
|
| 25 | 1 | ->setClass(Cache::class); |
|
| 26 | |||
| 27 | 1 | $builder->addDefinition($this->prefix('validatorBuilder')) |
|
| 28 | 1 | ->setClass(ValidatorBuilder::class) |
|
| 29 | 1 | ->addSetup('enableAnnotationMapping') |
|
| 30 | 1 | ->addSetup('setMetadataCache'); |
|
| 31 | |||
| 32 | 1 | $builder->addDefinition($this->prefix('validator')) |
|
| 33 | 1 | ->setClass(RecursiveValidator::class) |
|
| 34 | 1 | ->setFactory(['@' . $this->prefix('validatorBuilder'), 'getValidator']); |
|
| 35 | 1 | } |
|
| 36 | |||
| 38 |