public function call() {
    $callable = $this->getRouteCallable();
    if (empty($callable) || !$this->doesHaveAccessToMethod($callable[1])) {
      $this->getApp()->returnError(DefaultAppErrors::$NOT_AUTHORIZED);
    }

    if (!empty($this->next)) {
      $this->next->call();
    }
  }
public function call() {
    $callable = $this->getRouteCallable();
    if (empty($callable) || !$this->doesHaveAccessToMethod($callable[1])) {
      $this->getApp()->returnError(DefaultAppErrors::$NOT_AUTHORIZED);
    }

    if (!empty($this->next)) {
      $this->next->call();
    }
  }
public function call ( ) { $ callable = $ this -> getRouteCallable ( ) ; if ( empty ( $ callable ) || ! $ this -> doesHaveAccessToMethod ( $ callable [ 1 ] ) ) { $ this -> getApp ( ) -> returnError ( DefaultAppErrors :: $ NOT_AUTHORIZED ) ; } if ( ! empty ( $ this -> next ) ) { $ this -> next -> call ( ) ; } }
Blocks access to REST functions that this class specifies using the doesHaveAccessToMethod.

@throws \Slim\Exception\Stop
Blocks access to REST functions that this class specifies using the doesHaveAccessToMethod .