public function packageSubRoutesCallback($filenameAndPath)
{
$globalRoutes = [['name' => 'a', 'uriPattern' => 'a/<b>/<c>', 'subRoutes' => ['b' => ['package' => 'Neos.Flow', 'suffix' => 'b'], 'c' => ['package' => 'Neos.Flow', 'suffix' => 'c']]]];
$subRoutesB = [['name' => 'b1', 'uriPattern' => 'b1'], ['name' => 'b2', 'uriPattern' => 'b2/<d>', 'subRoutes' => ['d' => ['package' => 'Neos.Flow', 'suffix' => 'd']]]];
$subRoutesC = [['name' => 'c1', 'uriPattern' => 'c1'], ['name' => 'c2', 'uriPattern' => 'c2/<e>', 'subRoutes' => ['e' => ['package' => 'Neos.Flow', 'suffix' => 'e']]]];
$subRoutesD = [['name' => 'd1', 'uriPattern' => 'd1']];
$subRoutesE = [['name' => 'e1', 'uriPattern' => 'e1'], ['name' => 'e2', 'uriPattern' => 'e2']];
switch ($filenameAndPath) {
case FLOW_PATH_CONFIGURATION . 'Routes':
return $globalRoutes;
case 'Flow/Configuration/Routes.b':
return $subRoutesB;
case 'Flow/Configuration/Routes.c':
return $subRoutesC;
case 'Flow/Configuration/Routes.d':
return $subRoutesD;
case 'Flow/Configuration/Routes.e':
return $subRoutesE;
default:
return [];
}
}