src/Router.php
private function buildCache(): array
    {
        $dispatchData = $this->routeCollector->getData();

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

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

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

        return $dispatchData;
    }
Builds the routes cache file

@return array The dispatch data