private function getAclAdapter() {
        $config = $this->getConfig();

        // Access control adapter
        $accessControl = $config['accessControl'];

        if (is_callable($accessControl) && !($accessControl instanceof AdapterInterface)) {
            $accessControl = $accessControl();
        }

        if (!$accessControl instanceof AdapterInterface) {
            throw new RuntimeException('Invalid access control adapter');
        }

        if (!$accessControl instanceof MutableAdapterInterface) {
            throw new RuntimeException('The configured access control adapter is not mutable');
        }

        return $accessControl;
    }
private function getAclAdapter() {
        $config = $this->getConfig();

        // Access control adapter
        $accessControl = $config['accessControl'];

        if (is_callable($accessControl) && !($accessControl instanceof AdapterInterface)) {
            $accessControl = $accessControl();
        }

        if (!$accessControl instanceof AdapterInterface) {
            throw new RuntimeException('Invalid access control adapter');
        }

        if (!$accessControl instanceof MutableAdapterInterface) {
            throw new RuntimeException('The configured access control adapter is not mutable');
        }

        return $accessControl;
    }
private function getAclAdapter ( ) { $ config = $ this -> getConfig ( ) ; // Access control adapter $ accessControl = $ config [ 'accessControl' ] ; if ( is_callable ( $ accessControl ) && ! ( $ accessControl instanceof AdapterInterface ) ) { $ accessControl = $ accessControl ( ) ; } if ( ! $ accessControl instanceof AdapterInterface ) { throw new RuntimeException ( 'Invalid access control adapter' ) ; } if ( ! $ accessControl instanceof MutableAdapterInterface ) { throw new RuntimeException ( 'The configured access control adapter is not mutable' ) ; } return $ accessControl ; }
Get the configured ACL adapter and ensure it is mutable

@return MutableAdapterInterface
Get the configured ACL adapter and ensure it is mutable