/** * {@inheritdoc} * @codeCoverageIgnore */ public function loadFile(AbstractFileEntity $fileEntity) { return $this->load($fileEntity->getPath()); }
/** * @param Request $request * @param AbstractFileEntity $fileEntity * * @return bool|\Symfony\Component\HttpFoundation\Response */ public function delete(Request $request, $fileEntity) { if (!$fileEntity) { return $this->createNotFoundResponse(); } return $this->fileService->delete($fileEntity->getPath()); }
/** * Automatically inject record_type for searching records * * @param array $wheres * @param array $options * * @return bool|AbstractEntity */ public function findBy(array $wheres, array $options = []) { $wheres['record_type'] = $this->prototype->getRecordType(); return $this->parentFindBy($wheres, $options); }
public function loadFile(AbstractFileEntity $fileEntity) { return $this->load($fileEntity->getPath() . DIRECTORY_SEPARATOR . $fileEntity->getId()); }