private function buildCache(): array
    {
        $dispatchData = $this->routeCollector->getData();

        file_put_contents($this->cacheFile, '<?php return ' . var_export($dispatchData, true) . ';');

        return $dispatchData;
    }