src/PHPDish/Bundle/ResourceBundle/Security/EntityVoter.php
protected function supports($attribute, $subject)
    {
        $entityClass = $this->getResourceClass();
        return in_array($attribute, $this->actions)
            && $subject instanceof $entityClass;
    }
protected function supports($attribute, $subject)
    {
        $entityClass = $this->getResourceClass();
        return in_array($attribute, $this->actions)
            && $subject instanceof $entityClass;
    }
{@inheritdoc}