code: private function buildCache(): array
      {
          $dispatchData = $this->routeCollector->getData();
  
          file_put_contents($this->cacheFile, '<?php return ' . var_export($dispatchData, true) . ';');
  
          return $dispatchData;
      }
docs: Builds the routes cache file
  
  @return array The dispatch data