src/main/php/auth/AuthConstraint.php
public function satisfiedByRoles(Roles $roles = null): bool
    {
        if (null === $roles) {
            return false;
        }

        if ($this->callbackAnnotatedWith->rolesAware()) {
            return true;
        }

        return $roles->contain($this->requiredRole());
    }
public function satisfiedByRoles(Roles $roles = null): bool
    {
        if (null === $roles) {
            return false;
        }

        if ($this->callbackAnnotatedWith->rolesAware()) {
            return true;
        }

        return $roles->contain($this->requiredRole());
    }
public function satisfiedByRoles ( Roles $ roles = null ) : bool { if ( null === $ roles ) { return false ; } if ( $ this -> callbackAnnotatedWith -> rolesAware ( ) ) { return true ; } return $ roles -> contain ( $ this -> requiredRole ( ) ) ; }
checks whether route is satisfied by the given roles

@param   \stubbles\webapp\auth\Roles  $roles
@return  bool
checks whether route is satisfied by the given roles