mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
Fill DirectExportInterface
This commit is contained in:
parent
743e342f25
commit
a31e3ad6f6
@ -5,11 +5,35 @@
|
|||||||
namespace Chill\MainBundle\Export;
|
namespace Chill\MainBundle\Export;
|
||||||
|
|
||||||
use Symfony\Component\HttpFoundation\Response;
|
use Symfony\Component\HttpFoundation\Response;
|
||||||
|
use Symfony\Component\Security\Core\Role\Role;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
interface DirectExportInterface extends ExportElementInterface
|
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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user