Validator/Constraints/RedirectionValidator.php
private function isPathAccessible($path)
    {
        $uri = $this->httpUtils->generateUri($this->requestStack->getMasterRequest(), $path);

        /** @var \Buzz\Message\Response $res */
        $res = $this->browser->get($uri);
        if ($res->isSuccessful()) {
            return true;
        }

        return false;
    }
private function isPathAccessible($path)
    {
        $uri = $this->httpUtils->generateUri($this->requestStack->getMasterRequest(), $path);

        /** @var \Buzz\Message\Response $res */
        $res = $this->browser->get($uri);
        if ($res->isSuccessful()) {
            return true;
        }

        return false;
    }
private function isPathAccessible ( $ path ) { $ uri = $ this -> httpUtils -> generateUri ( $ this -> requestStack -> getMasterRequest ( ) , $ path ) ; /** @var \Buzz\Message\Response $res */ $ res = $ this -> browser -> get ( $ uri ) ; if ( $ res -> isSuccessful ( ) ) { return true ; } return false ; }
Returns whether the given path is accessible through http or not.

@param $path
@return bool
Returns whether the given path is accessible through http or not .