code: protected function getNumList(): array
      {
          preg_match_all('/\/\d+/u', $this->request->route(), $numList);
          $numList = $numList[0];
          $numList = array_map(function($val) {
              return intval(ltrim($val, '/'));
          }, $numList);
          return $numList;
      }
docs: Get route digit's.
  
  @return array