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.php31 private $rootPath; variable in Twig\\Loader\\FilesystemLoader
35 * @param string|null $rootPath The root path common to all relative paths (null for getcwd())
37 public function __construct($paths = [], string $rootPath = null) argument
39 $this->rootPath = (null === $rootPath ? getcwd() : $rootPath).\DIRECTORY_SEPARATOR;
40 if (null !== $rootPath && false !== ($realPath = realpath($rootPath))) {
41 $this->rootPath = $realPath.\DIRECTORY_SEPARATOR;
104 $checkPath = $this->isAbsolutePath($path) ? $path : $this->rootPath.$path;
125 $checkPath = $this->isAbsolutePath($path) ? $path : $this->rootPath.$path;
153 $len = \strlen($this->rootPath);
154 if (0 === strncmp($this->rootPath, $path, $len)) {
[all …]