Resolves path to the internal prototypes.

@return string

@throws IllegalStateException in case of absence internal prototypes directory
6095
private function reslovePrototypesPath()
    {
        $prototypesPath = $this->prototypesPath;

        // fallback
        if (empty($prototypesPath)) {
            $prototypesPath = \dirname(__DIR__).'/prototypes';
        }

        if (!is_dir($prototypesPath) || !is_readable($prototypesPath)) {
            throw new IllegalStateException('Unable to resolve internal prototypes directory.');
        }

        return $prototypesPath;
    }
1180828
public function getRootPath()
    {
        if (null === $this->rootPath) {
            if (method_exists($this, 'setRootPath')) {
                $this->rootPath = realpath($this->setRootPath());
            } else {
                $this->rootPath = realpath(__DIR__.'/../../../../..');
            }
        }
        //$this->rootPath = '../';

        return $this->rootPath;
    }
1267342
public function getPathRelativeToRoot(): string
    {
        if (is_null($this->conversion)) {
            return $this->pathGenerator->getPath($this->media).($this->media->file_name);
        }

        return $this->pathGenerator->getPathForConversions($this->media)
            .pathinfo($this->media->file_name, PATHINFO_FILENAME)
            .'-'.$this->conversion->getName()
            .'.'
            .$this->conversion->getResultExtension($this->media->extension);
    }
1182575
public function getRelativePath()
    {
        return trim(substr($this->path, strlen($this->basePath)), self::TRIM_CHARS);
    }
540006
public function getExternalPath() {
        if (true === $this->_config->getConfigData('development_environment')) {
            $extPath = EXT_ROOT . $this->_config->getConfigData('base_path_dev');
        } else {
            $extPath = EXT_ROOT . $this->_config->getConfigData('base_path');
        }
        return $extPath;
    }
242137
public function getMapFilePath()
    {
        return sprintf(
            '%s.php',
            $this->mapBasePath .
            DIRECTORY_SEPARATOR .
            $this->getLang().
            DIRECTORY_SEPARATOR .
            $this->getSystem()
        );
    }
585753
public function getDirectory(): FilePathInterface
    {
        return new self($this->myIsAbsolute, $this->myAboveBaseLevel, $this->myDrive, $this->myDirectoryParts, null);
    }
836040
private function resolveValidPath():string{
		$last = null;
		foreach( $this->tree as $level ){
			if( !$level->exist ){
				break;
			}
			$last = $level;
		}
		if( $last === null ){
			return '';
		}
		return $last->path;
	}
183949
protected function getResolvedPaths()
    {
        if (null === $this->resolvedPaths) {
            $this->resolveDirectories();
            // Collect all path properties and put them into $paths associatively using propertyName => propertyValue
            $paths = [];
            collect(array_keys(get_class_vars(get_class($this))))->filter(function ($propertyName) {
                return ends_with($propertyName, 'Path');
            })->each(function ($propertyName) use (&$paths) {
                $paths[ $propertyName ] = $this->{$propertyName};
            });

            // Use the paths to generate parsed paths, resolving all the {vars}
            $this->resolvedPaths = collect($paths)->transform(function ($path) use ($paths) {
                return Util::template($path, $paths);
            })->transform(function ($path, $propertyName) {
                return ends_with($propertyName, 'DestinationPath') ? base_path($path) : path_join($this->rootDir, $path);
            })->toArray();
        }

        return $this->resolvedPaths;
    }
1056914
public function getRelativePathToCurrentDirectoryParent()
    {
        if ($this->baseDir === $this->currentDir) {
            return DIRECTORY_SEPARATOR;
        }

        $path = realpath($this->currentDir . DIRECTORY_SEPARATOR . '..');

        return $this->getPathRelativeToBaseDir($path) ?: DIRECTORY_SEPARATOR;
    }
1067385
protected function getNewPath()
    {
        return $this->getAbsolutesitesFolder().DIRECTORY_SEPARATOR.$this->currentSite->slug.DIRECTORY_SEPARATOR.$this->currentPath;
    }
21230
public function getAbsloutPath()
    {
        $path = Pluf_Tenant::storagePath() . '/tenant-resources/' . $this->id;
        $dirname = dirname($path);
        if (! is_dir($dirname)) {
            mkdir($dirname, 0755, true);
            // FIXME: maso, 2019: throw exception if is not possible to create
        }
        return $path;
    }
96043
protected function getPropertyFilepaths()
    {
        $file = $this->basename.'.properties';

        if($this->MessageService->fileExists($file))
            return $this->MessageService->resolveFile($file)->getLocalPath();

        return null;
    }
689168
public function getSourcePath() {

		// lazy init

		if(is_null($this->sourcePath)) {

			$this->sourcePath =
				$this->rootPath .
				'src' . DIRECTORY_SEPARATOR;

		}

		return $this->sourcePath;

	}
1243127
public function getPath(): string
    {
        if (!$this->path) {
            if (\defined('PATH_APPLICATION')) {
                $this->path = PATH_APPLICATION;
            } else {
                $reflection = new \ReflectionClass($this);
                // 3 level up
                $this->path = \dirname($reflection->getFileName(), 3);
            }
        }
        return $this->path;
    }
564919
public function getRelativePath()
    {
        if ($this->file !== null) {
            return dirname($this->file->getForLocalProcessing(false)) . '/';
        } else {
            return str_replace(PATH_site, '', $this->fileInfo['path']);
        }
    }
545488
protected function getParentClasspath()
    {
        if ($this->getChild()->getAncestor()) {
            return $this->getChild()->getAncestor();
        } else {
            return $this->getObjectBuilder()->getClasspath();
        }
    }