/**
* @return string[] A list of classes to preload on PHP 7.4+
*/
public function warmUp(string
$cacheDir): array
{ $currentDir =
$this->
getOption('cache_dir'
);
// force cache generation
$this->
setOption('cache_dir',
$cacheDir);
$this->
getMatcher();
$this->
getGenerator();
$this->
setOption('cache_dir',
$currentDir);
return [ $this->
getOption('generator_class'
),
$this->
getOption('matcher_class'
),
];
} /**
* Replaces placeholders with service container parameter values in:
* - the route defaults,
* - the route requirements,
* - the route path,
* - the route host,
* - the route schemes,
* - the route methods.
*/