code: public function routeIndex(Request $request, Response $response, $args)
      {
          $this->tableName = $args[ROUTEARG_DATABASE_TABLE_NAME];
          $this->tableMapper = new TableMapper($this->tableName);
          parent::__construct($this->container, $this->tableMapper, ROUTEPREFIX_ROLES);
  
          return $this->indexView($response);
      }
docs: overrides in order to get objects and send to indexView