VCR\Util\StreamProcessor::isWhitelisted PHP Method

isWhitelisted() protected method

Determines that the provided url is member of a url whitelist.
protected isWhitelisted ( string $uri ) : boolean
$uri string
return boolean True if the specified url is whitelisted, false otherwise.
    protected function isWhitelisted($uri)
    {
        $whiteList = static::$configuration->getWhiteList();
        if (empty($whiteList)) {
            return true;
        }
        $uri = $this->normalizePath($uri);
        foreach ($whiteList as $path) {
            if (strpos($uri, $path) !== false) {
                return true;
            }
        }
        return false;
    }