fileMimeTypes[$filePath] = $mimeType; } /** * @inheritdoc */ public function guess($path) { if (array_key_exists($path, $this->fileMimeTypes)) { return $this->fileMimeTypes[$path]; } return null; } }