fecshop.php 629 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * FecShop file.
  4. * @link http://www.fecshop.com/
  5. * @copyright Copyright (c) 2016 FecShop Software LLC
  6. * @license http://www.fecshop.com/license/
  7. */
  8. // 本文件在app/web/index.php 处引入。
  9. // 服务
  10. $services = [];
  11. foreach (glob(__DIR__ . '/services/*.php') as $filename) {
  12. $services = array_merge($services, require($filename));
  13. }
  14. // 组件
  15. $components = [];
  16. foreach (glob(__DIR__ . '/components/*.php') as $filename) {
  17. $components = array_merge($components, require($filename));
  18. }
  19. return [
  20. 'components' => $components,
  21. 'services' => $services,
  22. 'params' => [
  23. ],
  24. ];