title: FastRoute Groups in Zend Expressive
body: <p>I want use route groups for FastRoute in Expressive.
  Like sample:</p>
  
  <pre><code>$router = $app-&gt;getContainer()-&gt;get(FastRoute\RouteCollector::class);
  
  $router-&gt;get('/', App\Action\HomePageAction::class);
  
  $router-&gt;addGroup('/pages', function (FastRoute\RouteCollector $router) {
      $router-&gt;get('', App\Action\PagesIndexAction::class);
      $router-&gt;get('/add', App\Action\PagesAddAction::class);
      $router-&gt;get('/edit/{id}', App\Action\PageEditActionFactory::class);
      $router-&gt;post('/edit/{id}', App\Action\PageEditActionFactory::class);
      $router-&gt;get('/another/{section}[/{subsection}]', PagesAnotherActionFactory::class);  
  });
  </code></pre>
  
  <p>I created factories as written in docs (<a href="https://docs.zendframework.com/zend-expressive/features/router/fast-route/#advanced-configuration" rel="nofollow noreferrer">https://docs.zendframework.com/zend-expressive/features/router/fast-route/#advanced-configuration</a>)
  And register their in <code>router.global.php</code>:</p>
  
  <pre><code>// ...
  'factories' =&gt; [
      FastRoute\RouteCollector::class =&gt; App\Container\FastRouteCollectorFactory::class,
      FastRoute\DispatcherFactory::class =&gt; App\Container\FastRouteDispatcherFactory::class,
      Zend\Expressive\Router\RouterInterface::class =&gt; App\Container\RouterFactory::class,
  ],
  // ...
  </code></pre>
  
  <p>Now I can not figure out where to write the configuration and how to activate it.
  Can this be done in the file <code>config/router.php</code>?
  Help me, please.</p>