AppserverIo\Appserver\Naming\NamingDirectory::prepareDirectory PHP 메소드

prepareDirectory() 공개 메소드

Prepare's and return's the path either by stripping of the scheme if it is absolute or append the name, if it is relative.
public prepareDirectory ( string $name ) : The
$name string The name to prepare the directory with
리턴 The prepared path
    public function prepareDirectory($name)
    {
        // query whether or not the passed name is a absolute directory
        if ($this->containsScheme($name)) {
            return $this->stripSchema($name);
        }
        // if not, only append it and return the new path
        return $this->appendDirectory($name);
    }