filePath = Environment::getPublicPath() . $path; } public function getFilePath(): string { return $this->filePath; } public function getBaseUrl(ServerRequestInterface $request): string { return $request->getAttribute('normalizedParams')->getRequestHost() . PathUtility::getAbsoluteWebPath($this->filePath); } }