In the constructor, $assetsHelper, FileUploader $fileUploader, $imageUploadPath are autowired by services.yamlwe use */ /** A simple image entity. */ id; } public function getFilename(): ?string { return $this->filename; } public function setFilename(?string $filename): self { $this->filename = $filename; return $this; } public function getFile(): ?File { return $this->file; } public function setFile(File $file = null): self { $this->file = $file; return $this; } public function getTempFilename(): ?string { return $this->tempFilename; } public function setTempFilename($filename): self { $this->tempFilename = $filename; return $this; } public function getWebView(): string { return $this->webView; } public function setWebView(string $webView): self { $this->webView = $webView; return $this; } public function __toString() { return $this->getFilename(); } }