public function hasPermission($assertionName, $value, array $attributes)
    {
        /** @var \Eye4web\Zf2Abac\Assertion\AssertionInterface $assertion */
        $assertion = $this->assertionPluginManager->get($assertionName);

        if (!$assertion) {
            throw new Exception\AssertionNotFound(sprintf(
                'The assertion \"%s\" was not found',
                is_object($assertion) ? get_class($assertion) : gettype($assertion)
            ));
        }

        return $assertion->hasPermission($value, $attributes);
    }
public function hasPermission($assertionName, $value, array $attributes)
    {
        /** @var \Eye4web\Zf2Abac\Assertion\AssertionInterface $assertion */
        $assertion = $this->assertionPluginManager->get($assertionName);

        if (!$assertion) {
            throw new Exception\AssertionNotFound(sprintf(
                'The assertion \"%s\" was not found',
                is_object($assertion) ? get_class($assertion) : gettype($assertion)
            ));
        }

        return $assertion->hasPermission($value, $attributes);
    }
public function hasPermission ( $ assertionName , $ value , array $ attributes ) { /** @var \Eye4web\Zf2Abac\Assertion\AssertionInterface $assertion */ $ assertion = $ this -> assertionPluginManager -> get ( $ assertionName ) ; if ( ! $ assertion ) { throw new Exception \ AssertionNotFound ( sprintf ( 'The assertion \"%s\" was not found' , is_object ( $ assertion ) ? get_class ( $ assertion ) : gettype ( $ assertion ) ) ) ; } return $ assertion -> hasPermission ( $ value , $ attributes ) ; }
Check assertion for permissions

@param string $assertionName
@param string $value
@param array $attributes
@return bool
@throws \Eye4web\Zf2Abac\Exception\AssertionNotFound
Check assertion for permissions