Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
32 | public function resolveIterator(PackagedResource $container) |
||
33 | { |
||
34 | $protocol = $container->getAbsoluteUri()->getProtocol(); |
||
35 | $iterator = call_user_func($this->getFactory($protocol), $container); |
||
36 | |||
37 | if (! $iterator) { |
||
38 | throw new \RuntimeException('Unsupported protocol: ' . $protocol); |
||
39 | } |
||
40 | |||
41 | return $iterator; |
||
42 | |||
43 | } |
||
44 | } |
||
45 |