src/Router/UrlGenerator/CachedDataGenerator.php
public function getData()
    {
        $cache = new ConfigCache($this->cacheFile, $this->debug);
        if (!$cache->isFresh()) {
            $routes = $this->wrappedGenerator->getData();

            $cache->write('<?php return '.var_export($routes, true).';');
        }

        return require $cache;
    }
public function getData()
    {
        $cache = new ConfigCache($this->cacheFile, $this->debug);
        if (!$cache->isFresh()) {
            $routes = $this->wrappedGenerator->getData();

            $cache->write('<?php return '.var_export($routes, true).';');
        }

        return require $cache;
    }
Get formatted route data for use by a URL generator

@return array