예제 #1
0
 /**
  * @inheritDoc
  */
 public function supports($attribute, $subject) : bool
 {
     $supportedClass = $this->classesPool->getClasses();
     $attributes = $this->typesPool->getTypes()->getKeys();
     return $subject instanceof $supportedClass && in_array($attribute, $attributes);
 }