From a31e3ad6f633979dd2af67a48bc53262f26023e0 Mon Sep 17 00:00:00 2001 From: Jean-Francois Monfort Date: Thu, 11 Feb 2021 16:29:19 +0100 Subject: [PATCH] Fill DirectExportInterface --- Export/DirectExportInterface.php | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/Export/DirectExportInterface.php b/Export/DirectExportInterface.php index ebbda3240..c315fc305 100644 --- a/Export/DirectExportInterface.php +++ b/Export/DirectExportInterface.php @@ -5,11 +5,35 @@ namespace Chill\MainBundle\Export; use Symfony\Component\HttpFoundation\Response; +use Symfony\Component\Security\Core\Role\Role; /** * */ interface DirectExportInterface extends ExportElementInterface { - + + /** + * get a description, which will be used in UI (and translated) + * + * @return string + */ + public function getDescription(): string; + + /** + * Generate the export + * + * @param array $acl + * @param array $data + * + * @return \Symfony\Component\HttpFoundation\Response + */ + public function generate(array $acl, array $data = []): Response; + + /** + * authorized role + * + * @return \Symfony\Component\Security\Core\Role\Role + */ + public function requiredRole(): Role; }