getBlackList() public method

Returns the current blacklist.
public getBlackList ( ) : array
return array
Beispiel #1
0
 /**
  * Determines that the provided url is member of a url blacklist.
  *
  * @param string $uri
  *
  * @return bool True if the provided url is blacklisted, flase otherwise.
  */
 protected function isBlacklisted($uri)
 {
     foreach (static::$configuration->getBlackList() as $path) {
         if (strpos($uri, $path) !== false) {
             return true;
         }
     }
     return false;
 }