/**
* findRouteValue takes the current Request and tries to find a default max-age value for either the full route,
* including the action, or at least the controller. If that fails, null is returned.
*
* @param array<string, array<string>> $values
*
* @return array<string>|int|null
*/
public function findRouteValue(Enlight_Controller_Request_Request
$request, ?array
$values = null
) { if (empty($values)) { $values =
$this->
getDefaultRouteValues();
} $route =
$this->cacheRouteGeneration->
getActionRoute($request);
if (isset($values[$route])) { return $values[$route];
} $route =
$this->cacheRouteGeneration->
getControllerRoute($request);
if (isset($values[$route])) { return $values[$route];
}