private function addContentsRights(array $config, UserSecurityIdentity $securityIdentity)
    {
        $rights = $this->getActionsOnResources($config);
        foreach ((array) $rights as $resource => $actions) {
            if ('all' === $resource) {
                $this->addClassAcl(AbstractClassContent::class, $securityIdentity, $actions);
                $this->writeln(sprintf('    - Setting [%s] on all content', implode(', ', $actions)), OutputInterface::VERBOSITY_DEBUG);
                continue;
            }

            try {
                $classname = AbstractClassContent::getFullClassname($resource);
                if (class_exists($classname)) {
                    $this->addClassAcl($classname, $securityIdentity, $actions);
                    $this->writeln(sprintf('    - Setting [%s] on %s', implode(', ', $actions), $cclassname), OutputInterface::VERBOSITY_DEBUG);
                }
            } catch (\Exception $ex) {
                $this->writeln(sprintf('    - Unknown content `%s`', $classname), OutputInterface::VERBOSITY_DEBUG);
            }
        }
    }
private function addContentsRights(array $config, UserSecurityIdentity $securityIdentity)
    {
        $rights = $this->getActionsOnResources($config);
        foreach ((array) $rights as $resource => $actions) {
            if ('all' === $resource) {
                $this->addClassAcl(AbstractClassContent::class, $securityIdentity, $actions);
                $this->writeln(sprintf('    - Setting [%s] on all content', implode(', ', $actions)), OutputInterface::VERBOSITY_DEBUG);
                continue;
            }

            try {
                $classname = AbstractClassContent::getFullClassname($resource);
                if (class_exists($classname)) {
                    $this->addClassAcl($classname, $securityIdentity, $actions);
                    $this->writeln(sprintf('    - Setting [%s] on %s', implode(', ', $actions), $cclassname), OutputInterface::VERBOSITY_DEBUG);
                }
            } catch (\Exception $ex) {
                $this->writeln(sprintf('    - Unknown content `%s`', $classname), OutputInterface::VERBOSITY_DEBUG);
            }
        }
    }
private function addContentsRights ( array $ config , UserSecurityIdentity $ securityIdentity ) { $ rights = $ this -> getActionsOnResources ( $ config ) ; foreach ( ( array ) $ rights as $ resource => $ actions ) { if ( 'all' === $ resource ) { $ this -> addClassAcl ( AbstractClassContent :: class , $ securityIdentity , $ actions ) ; $ this -> writeln ( sprintf ( '    - Setting [%s] on all content' , implode ( ', ' , $ actions ) ) , OutputInterface :: VERBOSITY_DEBUG ) ; continue ; } try { $ classname = AbstractClassContent :: getFullClassname ( $ resource ) ; if ( class_exists ( $ classname ) ) { $ this -> addClassAcl ( $ classname , $ securityIdentity , $ actions ) ; $ this -> writeln ( sprintf ( '    - Setting [%s] on %s' , implode ( ', ' , $ actions ) , $ cclassname ) , OutputInterface :: VERBOSITY_DEBUG ) ; } } catch ( \ Exception $ ex ) { $ this -> writeln ( sprintf ( '    - Unknown content `%s`' , $ classname ) , OutputInterface :: VERBOSITY_DEBUG ) ; } } }
Adding rights on AbstractClassContent objects.

@param  array $config
@param  UserSecurityIdentity $securityIdentity
Adding rights on AbstractClassContent objects .