src/Graviton/ProxyBundle/Definition/Loader/HttpLoader.php
public function supports($url)
    {
        $error = $this->validator->validate($url, [new Url()]);

        return 0 === count($error);
    }
public function supports($url)
    {
        $error = $this->validator->validate($url, [new Url()]);

        return 0 === count($error);
    }
public function supports ( $ url ) { $ error = $ this -> validator -> validate ( $ url , [ new Url ( ) ] ) ; return 0 === count ( $ error ) ; }
check if the url is valid

@param string $url url

@return boolean
check if the url is valid