application.config.php 995 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. use Magento\Setup\Mvc\Bootstrap\InitParamListener;
  7. use Zend\Mvc\Service\DiAbstractServiceFactoryFactory;
  8. use Zend\ServiceManager\Di\DiAbstractServiceFactory;
  9. return [
  10. 'modules' => [
  11. 'Magento\Setup',
  12. ],
  13. 'module_listener_options' => [
  14. 'module_paths' => [
  15. __DIR__ . '/../src',
  16. ],
  17. 'config_glob_paths' => [
  18. __DIR__ . '/autoload/{,*.}{global,local}.php',
  19. ],
  20. ],
  21. 'listeners' => [
  22. InitParamListener::class
  23. ],
  24. 'service_manager' => [
  25. 'factories' => [
  26. DiAbstractServiceFactory::class => DiAbstractServiceFactoryFactory::class,
  27. InitParamListener::BOOTSTRAP_PARAM => InitParamListener::class,
  28. ],
  29. ],
  30. // list of Magento specific required services, like default abstract factory
  31. 'required_services' => [
  32. DiAbstractServiceFactory::class
  33. ]
  34. ];