public function match(UriInterface $uri) { /* * if the URI does not contain the seed, it is not allowed */ return false === stripos($uri->toString(), $this->seed->toString()); }
public function match(UriInterface $uri) { foreach ($this->regexes as $regex) { if (preg_match($regex, $uri->toString())) { return FALSE; } } return TRUE; }
public function match(UriInterface $uri) { $currentHostname = $uri->getHost(); if ($this->allowSubDomains) { // only use hostname.tld for comparison $currentHostname = join('.', array_slice(explode('.', $currentHostname), -2)); } return !in_array($currentHostname, $this->allowedHosts); }
public function match(UriInterface $uri) { return null !== $uri->getQuery(); }
public function match(UriInterface $uri) { return null !== $uri->getFragment(); }
/** * @return string|null */ public function getFragment() { return $this->decorated->getFragment(); }
/** * @param UriInterface $uri * @return Resource */ public function request(UriInterface $uri) { $response = $this->getClient()->createRequest(RequestInterface::GET, $uri->toString())->send(); return new Resource($uri, $response); }
/** * @return bool */ public function match(UriInterface $uri) { return !in_array($uri->getScheme(), $this->allowedSchemes); }