Exemplo n.º 1
0
 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;
 }
Exemplo n.º 3
0
 public function toString()
 {
     return $this->decorated->toString();
 }
Exemplo n.º 4
0
 /**
  * @param UriInterface $uri
  * @return Resource
  */
 public function request(UriInterface $uri)
 {
     $response = $this->getClient()->createRequest(RequestInterface::GET, $uri->toString())->send();
     return new Resource($uri, $response);
 }