class CacheRouteGenerationService{ /**
* getActionRoute takes a request and returns the concatenated module-, controller- and action-name,
* e.g. frontend/listing/index.
*
* @return string
*/
public function getActionRoute(Request
$request) { return implode('/',
[ $this->
getControllerRoute($request),
strtolower($request->
getActionName()),
]);
} /**
* getActionRoute takes a request and returns the concatenated module- and controller-name,
* e.g. frontend/listing.
*
* @return string
*/
public function getControllerRoute(Request
$request) {