public function findFactory(PathInformationInterface $path, $mode)
    {
        $factoryList    = clone $this->factoryList;
        foreach ($factoryList as $factory) {
            /** @var $factory Factory */
            if ($factory->canHandle($path, $mode)) {
                return $factory;
            }
        }
        throw new \RuntimeException('No factory found to handle the requested path');
    }
public function findFactory(PathInformationInterface $path, $mode)
    {
        $factoryList    = clone $this->factoryList;
        foreach ($factoryList as $factory) {
            /** @var $factory Factory */
            if ($factory->canHandle($path, $mode)) {
                return $factory;
            }
        }
        throw new \RuntimeException('No factory found to handle the requested path');
    }
public function findFactory ( PathInformationInterface $ path , $ mode ) { $ factoryList = clone $ this -> factoryList ; foreach ( $ factoryList as $ factory ) { /** @var $factory Factory */ if ( $ factory -> canHandle ( $ path , $ mode ) ) { return $ factory ; } } throw new \ RuntimeException ( 'No factory found to handle the requested path' ) ; }
Returns the file stream factory to handle the requested path

@param   PathInformationInterface     $path   The path information
@param   string                       $mode   The mode used to open the path
@return  Factory                              The file buffer factory to handle the path
@throws  \RuntimeException                    If no factory is found to handle to the path
Returns the file stream factory to handle the requested path