translator = $translator; } public function getType() { return self::TYPE_PDF; } public function getDescription() { return $this->translator->trans('Generates a pdf file'); } public function getMediaAlchemystSpec() { if (! $this->spec) { $this->spec = new PdfSpecification(); } return $this->spec; } }