router.config.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. return [
  7. 'router' => [
  8. 'routes' => [
  9. 'literal' => [
  10. 'type' => 'Literal',
  11. 'options' => [
  12. 'route' => '/',
  13. 'defaults' => [
  14. 'controller' => \Magento\Setup\Controller\Index::class,
  15. 'action' => 'index',
  16. ],
  17. ],
  18. ],
  19. 'setup' => [
  20. 'type' => 'Segment',
  21. 'options' => [
  22. 'route' => '[/:controller[/:action]]',
  23. 'defaults' => [
  24. '__NAMESPACE__' => 'Magento\Setup\Controller',
  25. 'controller' => 'Index',
  26. 'action' => 'index',
  27. ],
  28. 'constraints' => [
  29. 'controller' => '[a-zA-Z][a-zA-Z0-9_-]*',
  30. 'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
  31. ],
  32. ],
  33. ],
  34. ],
  35. ],
  36. ];