| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 40 | public function resolve(string $id, array $args = [], bool $new = false) |
||
| 41 | { |
||
| 42 | foreach ($this->getIterator() as $definition) { |
||
| 43 | if ($id === $definition->getAlias()) { |
||
| 44 | return $definition->resolve($args, $new); |
||
| 45 | } |
||
| 46 | } |
||
| 47 | |||
| 48 | throw new NotFoundException(sprintf('Alias (%s) is not being handled by the container', $id)); |
||
| 49 | } |
||
| 50 | |||
| 63 |