for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace KunicMarko\SonataAnnotationBundle\Annotation;
/**
* Access control annotation.
*
* Allow you to control permission per role.
* @Annotation
* @Target("CLASS")
* @author Marko Kunic <[email protected]>
* @author Mathieu Wambre <[email protected]>
*/
final class Access implements AnnotationInterface
{
* Allowed role.
* @var string
public string $role;
* Allowed permissions.
* @var array
public array $permissions = [];
}