getCollection()->get_databox()->getRecordRepository()->findBySha256($file->getSha256())); return new Response($boolean, $this); } /** * {@inheritdoc} */ public function getMessage(TranslatorInterface $translator) { return $translator->trans('A file with the same checksum already exists in database'); } }