src/Resource/Resolver/ProtocolBasedReaderResolver.php 1 location
|
@@ 46-48 (lines=3) @@
|
| 43 |
|
*/ |
| 44 |
|
public function resolveReader(ResourceUri $resource) |
| 45 |
|
{ |
| 46 |
|
if (! array_key_exists($resource->getProtocol(), $this->protocolFactoryIndexes)) { |
| 47 |
|
throw new \RuntimeException('Unsupported protocol: ' . $resource->getProtocol() . '( ' . $resource . ')'); |
| 48 |
|
} |
| 49 |
|
|
| 50 |
|
/** @var int $index */ |
| 51 |
|
$index = $this->protocolFactoryIndexes[$resource->getProtocol()]; |
src/Resource/Resolver/ProtocolBasedWriterResolver.php 1 location
|
@@ 45-47 (lines=3) @@
|
| 42 |
|
*/ |
| 43 |
|
public function resolveWriter(ResourceUri $resource) |
| 44 |
|
{ |
| 45 |
|
if (! array_key_exists($resource->getProtocol(), $this->protocolWriterIndexes)) { |
| 46 |
|
throw new \RuntimeException('Unsupported protocol: ' . $resource->getProtocol() . '( ' . $resource . ')'); |
| 47 |
|
} |
| 48 |
|
|
| 49 |
|
/** @var int $index */ |
| 50 |
|
$index = $this->protocolWriterIndexes[$resource->getProtocol()]; |