public static function forPath($path, Exception $cause = null) { return new static(sprintf('The resource %s does not exist.', $path), 0, $cause); }
/** * {@inheritdoc} */ public function getChild($relPath) { if (!$this->getRepository()) { throw ResourceNotFoundException::forPath($this->getRepositoryPath() . '/' . $relPath); } return $this->getRepository()->get($this->getRepositoryPath() . '/' . $relPath); }