protected function removePrefix($path) { $path = ltrim($path, '/'); if (strpos($path, $this->prefix) === 0) { $path = substr($path, strlen($this->prefix)); } return $path; }