src/Parser/Descriptor.php
public function getExposedPath($url)
    {
        $isExposedAs = '';
        list($host, $path) = $this->getUriHostAndPath($url);

        if ($host == $this->host) {
            foreach ($this->paths as $exposedPath => $exposedDirectory) {
                $relative = $this->getRelative($path, $exposedPath);
                if (!is_null($relative)) {
                    $isExposedAs = $exposedDirectory.$relative;
                    break;
                }
            }
        }

        return $isExposedAs;
    }
public function getExposedPath($url)
    {
        $isExposedAs = '';
        list($host, $path) = $this->getUriHostAndPath($url);

        if ($host == $this->host) {
            foreach ($this->paths as $exposedPath => $exposedDirectory) {
                $relative = $this->getRelative($path, $exposedPath);
                if (!is_null($relative)) {
                    $isExposedAs = $exposedDirectory.$relative;
                    break;
                }
            }
        }

        return $isExposedAs;
    }
public function getExposedPath ( $ url ) { $ isExposedAs = '' ; list ( $ host , $ path ) = $ this -> getUriHostAndPath ( $ url ) ; if ( $ host == $ this -> host ) { foreach ( $ this -> paths as $ exposedPath => $ exposedDirectory ) { $ relative = $ this -> getRelative ( $ path , $ exposedPath ) ; if ( ! is_null ( $ relative ) ) { $ isExposedAs = $ exposedDirectory . $ relative ; break ; } } } return $ isExposedAs ; }
Gets the exposed path.

@param string $url The url

@return string The exposed path
Gets the exposed path .