Home
last modified time | relevance | path

Searched refs:rootPath (Results 1 – 1 of 1) sorted by relevance

/template/twigstarter/vendor/twig/twig/src/Loader/
DFilesystemLoader.php34 private $rootPath; variable in Twig\\Loader\\FilesystemLoader
38 … * @param string|null $rootPath The root path common to all relative paths (null for getcwd())
40 public function __construct($paths = [], ?string $rootPath = null) argument
42 $this->rootPath = ($rootPath ?? getcwd()).\DIRECTORY_SEPARATOR;
43 if (null !== $rootPath && false !== ($realPath = realpath($rootPath))) {
44 $this->rootPath = $realPath.\DIRECTORY_SEPARATOR;
97 $checkPath = $this->isAbsolutePath($path) ? $path : $this->rootPath.$path;
113 $checkPath = $this->isAbsolutePath($path) ? $path : $this->rootPath.$path;
141 $len = \strlen($this->rootPath);
142 if (0 === strncmp($this->rootPath, $path, $len)) {
[all …]