module.config.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. return [
  7. 'view_manager' => [
  8. 'display_not_found_reason' => false,
  9. 'display_exceptions' => false,
  10. 'doctype' => 'HTML5',
  11. 'not_found_template' => 'error/404',
  12. 'exception_template' => 'error/index',
  13. 'template_map' => [
  14. 'layout/layout' => __DIR__ . '/../view/layout/layout.phtml',
  15. 'error/404' => __DIR__ . '/../view/error/404.phtml',
  16. 'error/index' => __DIR__ . '/../view/error/index.phtml',
  17. ],
  18. 'template_path_stack' => [
  19. 'setup' => __DIR__ . '/../view',
  20. ],
  21. 'strategies' => ['ViewJsonStrategy'],
  22. ],
  23. 'translator' => [
  24. 'translation_file_patterns' => [
  25. [
  26. 'type' => 'gettext',
  27. 'base_dir' => __DIR__ . '/../lang',
  28. 'pattern' => '%s.mo',
  29. ],
  30. ],
  31. ],
  32. 'service_manager' => [
  33. 'aliases' => [
  34. 'translator' => 'MvcTranslator'
  35. ]
  36. ],
  37. 'controllers' => [
  38. 'abstract_factories' => [
  39. \Zend\Mvc\Controller\LazyControllerAbstractFactory::class,
  40. ],
  41. ],
  42. ];