AclAnnotationValidator example

private EntityRepository $appRepository;

    private Connection $connection;

    private AclAnnotationValidator $validator;

    protected function setUp(): void
    {
        $this->appRepository = $this->getContainer()->get('app.repository');
        $this->connection = $this->getContainer()->get(Connection::class);
        $this->validator = new AclAnnotationValidator($this->connection);
    }

    /** * @dataProvider annotationProvider * * @param list<string> $privileges * @param list<string> $acl */
    public function testValidateRequestAsRouteAttribute(array $privileges, array $acl, bool $pass): void
    {
        $source = new AdminApiSource(null, null);
        
Home | Imprint | This part of the site doesn't use cookies.