Permission/PermissionManager.php
private function getConfigPermission(RoleSecurityIdentity $sid, $operation, $subject = null, $class = null, $field = null)
    {
        $sps = $this->getConfigPermissions();
        $field = null !== $field ? PermissionProviderInterface::CONFIG_FIELD : null;
        $fieldAction = PermissionUtils::getMapAction($field);
        $pc = null;

        if (isset($sps[PermissionProviderInterface::CONFIG_CLASS][$fieldAction][$operation])) {
            $sp = $sps[PermissionProviderInterface::CONFIG_CLASS][$fieldAction][$operation];
            $pc = new PermissionChecking($sp, $this->isConfigGranted($sid, $operation, $subject, $class), true);
        }

        return $pc;
    }
private function getConfigPermission(RoleSecurityIdentity $sid, $operation, $subject = null, $class = null, $field = null)
    {
        $sps = $this->getConfigPermissions();
        $field = null !== $field ? PermissionProviderInterface::CONFIG_FIELD : null;
        $fieldAction = PermissionUtils::getMapAction($field);
        $pc = null;

        if (isset($sps[PermissionProviderInterface::CONFIG_CLASS][$fieldAction][$operation])) {
            $sp = $sps[PermissionProviderInterface::CONFIG_CLASS][$fieldAction][$operation];
            $pc = new PermissionChecking($sp, $this->isConfigGranted($sid, $operation, $subject, $class), true);
        }

        return $pc;
    }
private function getConfigPermission ( RoleSecurityIdentity $ sid , $ operation , $ subject = null , $ class = null , $ field = null ) { $ sps = $ this -> getConfigPermissions ( ) ; $ field = null !== $ field ? PermissionProviderInterface :: CONFIG_FIELD : null ; $ fieldAction = PermissionUtils :: getMapAction ( $ field ) ; $ pc = null ; if ( isset ( $ sps [ PermissionProviderInterface :: CONFIG_CLASS ] [ $ fieldAction ] [ $ operation ] ) ) { $ sp = $ sps [ PermissionProviderInterface :: CONFIG_CLASS ] [ $ fieldAction ] [ $ operation ] ; $ pc = new PermissionChecking ( $ sp , $ this -> isConfigGranted ( $ sid , $ operation , $ subject , $ class ) , true ) ; } return $ pc ; }
Get the config permission.

@param RoleSecurityIdentity                                  $sid       The role security identity
@param string                                                $operation The operation
@param null|FieldVote|object|string|SubjectIdentityInterface $subject   The object or class name or field vote
@param null|string                                           $class     The class name
@param null|string                                           $field     The field name

@return null|PermissionChecking
Get the config permission .