public function getKey($path, $directory) { $path = $this->normalizePath($path); return ltrim(substr($path, strlen($directory)), '/'); }