public computeKey ( string $path ) : string | ||
$path | string | |
Результат | string |
public function computeKey($path)
{
if (0 !== strpos($path, $this->directory)) {
throw new \OutOfBoundsException(sprintf('The path \'%s\' is out of the filesystem.', $path));
}
return ltrim(substr($path, strlen($this->directory)), '/');
}