privates['security.access_map'] = $instance = new \Symfony\Component\Security\Http\AccessMap(); $instance->add(new \Symfony\Component\HttpFoundation\ChainRequestMatcher([new \Symfony\Component\HttpFoundation\RequestMatcher\PathRequestMatcher('^/cds')]), ['ROLE_ADMIN'], NULL); $instance->add(new \Symfony\Component\HttpFoundation\ChainRequestMatcher([new \Symfony\Component\HttpFoundation\RequestMatcher\PathRequestMatcher('^/cds/document')]), ['ROLE_SUPERADMIN'], NULL); $instance->add(new \Symfony\Component\HttpFoundation\ChainRequestMatcher([new \Symfony\Component\HttpFoundation\RequestMatcher\PathRequestMatcher('^/cds/intel')]), ['ROLE_DEVELOPER', 'ROLE_MARKETING'], NULL); $instance->add(new \Symfony\Component\HttpFoundation\ChainRequestMatcher([new \Symfony\Component\HttpFoundation\RequestMatcher\PathRequestMatcher('^/cds/user')]), ['ROLE_SUPERADMIN'], NULL); $instance->add(new \Symfony\Component\HttpFoundation\ChainRequestMatcher([new \Symfony\Component\HttpFoundation\RequestMatcher\PathRequestMatcher('^/file/internal')]), ['ROLE_ADMIN'], NULL); $instance->add(new \Symfony\Component\HttpFoundation\ChainRequestMatcher([new \Symfony\Component\HttpFoundation\RequestMatcher\PathRequestMatcher('^/theme')]), ['ROLE_DEVELOPER', 'ROLE_MARKETING'], NULL); return $instance; } }