/** * Deletes a record * * @param Number $id ID of record * * @return Response $response Result of the action */ public function deleteAction($id) { if ($this->fileManager->has($id)) { $this->fileManager->delete($id); } return parent::deleteAction($id); }
/** * Deletes a record * * @param Number $id ID of record * * @return Response $response Result of the action */ public function deleteAction($id) { if ($this->gaufrette->has($id)) { $this->gaufrette->delete($id); } return parent::deleteAction($id); }
/** * @param Response $response Response * @param RestUtilsInterface $restUtils Rest utils * @param Router $router Router * @param ValidatorInterface $validator Validator * @param EngineInterface $templating Templating * @param FormFactory $formFactory form factory * @param DocumentType $formType generic form * @param ContainerInterface $container Container * @param SchemaUtils $schemaUtils schema utils * @param CoreUtils $coreUtils coreUtils */ public function __construct(Response $response, RestUtilsInterface $restUtils, Router $router, ValidatorInterface $validator, EngineInterface $templating, FormFactory $formFactory, DocumentType $formType, ContainerInterface $container, SchemaUtils $schemaUtils, CoreUtils $coreUtils) { parent::__construct($response, $restUtils, $router, $validator, $templating, $formFactory, $formType, $container, $schemaUtils); $this->coreUtils = $coreUtils; }