TQ\Vcs\StreamWrapper\FileBuffer\Factory::canHandle PHP Method

canHandle() public method

Returns true if this factory can handle the requested path
public canHandle ( TQ\Vcs\StreamWrapper\PathInformationInterface $path, string $mode ) : boolean
$path TQ\Vcs\StreamWrapper\PathInformationInterface The path information
$mode string The mode used to open the file
return boolean True if this factory can handle the path
    public function canHandle(PathInformationInterface $path, $mode)
    {
        try {
            $this->findFactory($path, $mode);
            return true;
        } catch (\RuntimeException $e) {
            return false;
        }
    }