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