| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function register() |
||
| 28 | { |
||
| 29 | $this->container->add(DefinitionBuilderInterface::class, DefinitionBuilder::class, true/* $shared */) |
||
| 30 | ->withArguments([ |
||
| 31 | function (NamedTypeNode $node) { |
||
| 32 | throw new \Exception(sprintf('Type "%s" not found in document.', $node->getNameValue())); |
||
| 33 | }, |
||
| 34 | CacheInterface::class, |
||
| 35 | ]); |
||
| 36 | |||
| 37 | $this->container->add(SchemaBuilderInterface::class, SchemaBuilder::class, true/* $shared */) |
||
| 38 | ->withArgument(DefinitionBuilderInterface::class); |
||
| 39 | } |
||
| 41 |