php_dsl_i18n.php 392 B

1234567891011121314151617
  1. <?php
  2. namespace Symfony\Component\Routing\Loader\Configurator;
  3. return function (RoutingConfigurator $routes) {
  4. $routes
  5. ->collection()
  6. ->prefix(['en' => '/glish'])
  7. ->add('foo', '/foo')
  8. ->add('bar', ['en' => '/bar']);
  9. $routes
  10. ->add('baz', ['en' => '/baz']);
  11. $routes->import('php_dsl_sub_i18n.php')
  12. ->prefix(['fr' => '/ench']);
  13. };