public function allow(Request $request)
    {
        foreach ($this->patterns as $regex)
            if (preg_match(sprintf("#^%s$#i", $regex), $request->getUri()->getPath()))
                return false;

        return true;
    }
public function allow(Request $request)
    {
        foreach ($this->patterns as $regex)
            if (preg_match(sprintf("#^%s$#i", $regex), $request->getUri()->getPath()))
                return false;

        return true;
    }
public function allow ( Request $ request ) { foreach ( $ this -> patterns as $ regex ) if ( preg_match ( sprintf ( "#^%s$#i" , $ regex ) , $ request -> getUri ( ) -> getPath ( ) ) ) return false ; return true ; }
The default allow rule set allows all connections through unless otherwise stated
@param Request $request
@return bool
The default allow rule set allows all connections through unless otherwise stated