mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-14 14:24:24 +00:00
44 lines
887 B
PHP
44 lines
887 B
PHP
<?php
|
|
|
|
/**
|
|
* Chill is a software for social workers
|
|
*
|
|
* For the full copyright and license information, please view
|
|
* the LICENSE file that was distributed with this source code.
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Chill\MainBundle\Security;
|
|
|
|
/**
|
|
* Declare role.
|
|
*
|
|
* The role are added to the configuration at compile time.
|
|
*
|
|
* The implemented object must be declared as a service and tagged as
|
|
*
|
|
* <pre>
|
|
* my_role_declaration:
|
|
* # ...
|
|
* tags:
|
|
* - { name: chill.role }
|
|
* </pre>
|
|
*/
|
|
interface ProvideRoleInterface
|
|
{
|
|
/**
|
|
* Return an array of role provided by the object.
|
|
*
|
|
* @return string[] array of roles (as string)
|
|
*/
|
|
public function getRoles(): array;
|
|
|
|
/**
|
|
* Return roles which doesn't need.
|
|
*
|
|
* @return string[] array of roles without scopes
|
|
*/
|
|
public function getRolesWithoutScope(): array;
|
|
}
|