/**
  * {@inheritDoc}
  */
 public function isGrantedClass($class, array $attributes = [], $group = Security::DEFAULT_GROUP)
 {
     $security = $this->metadataFactory->loadForClass($class, $group);
     if (!$security) {
         return true;
     }
     return $this->ruleChecker->decide($security->getRules(), $attributes, $security->getStrategy());
 }
 /**
  * {@inheritDoc}
  */
 public function loadForClass($class, $group = Security::DEFAULT_GROUP)
 {
     $key = 'security.metadata.class:' . $class . ':' . $group;
     $metadata = $this->cache->get($key);
     if (!$metadata) {
         $metadata = $this->delegate->loadForClass($class, $group);
         $this->cache->set($key, $metadata);
     }
     return $metadata;
 }