src/Graviton/SecurityBundle/Authentication/Strategies/SameSubnetStrategy.php
public function apply(Request $request)
    {
        if (IpUtils::checkIp($request->getClientIp(), $this->subnet)) {
            $name = $this->extractFieldInfo($request->headers, $this->headerField);
            if (!empty($name)) {
                return $name;
            }
        }

        return '';
    }
public function apply(Request $request)
    {
        if (IpUtils::checkIp($request->getClientIp(), $this->subnet)) {
            $name = $this->extractFieldInfo($request->headers, $this->headerField);
            if (!empty($name)) {
                return $name;
            }
        }

        return '';
    }
public function apply ( Request $ request ) { if ( IpUtils :: checkIp ( $ request -> getClientIp ( ) , $ this -> subnet ) ) { $ name = $ this -> extractFieldInfo ( $ request -> headers , $ this -> headerField ) ; if ( ! empty ( $ name ) ) { return $ name ; } } return '' ; }
Applies the defined strategy on the provided request.

@param Request $request request to handle

@return string
Applies the defined strategy on the provided request .