How does the config file inheritance work?
Is it something like this?
config/Shared/config-default.php
config/Shared/config-default_{store}.php
config/Shared/config-default_{environment_name}.php
config/Shared/config-default_{environment_name}_{store}.php
Or is it only using ?
config/Shared/config-default_{environment_name}.php
config/Shared/config-default_{environment_name}_{store}.php
Is there anywhere a documentation for this, because I can not find any…
Best Answer
-
Just take a look here → \Spryker\Shared\Config\Config::init
1
Answers
-
Just take a look here → \Spryker\Shared\Config\Config::init
1 -
Thanks @ynnoig!
For everyone newbie like me:
The config files are imported in this order according to the accepted answer!
config/Shared/config-default.php
config/Shared/config-default_{environment_name}.php
config/Shared/config-default_{store}.php
config/Shared/config-default_{environment_name}_{store}.php
config/Shared/config_local_test.php
config/Shared/config_local.php
config/Shared/config_local_{store}.php
config/Shared/config_propel.php
Cheers Andy!
4 -
Hi @andreas.fluer , just a slight, nitpicky, correction to the numbers 3, 4 and 7:
The config loaded there is not necessarily the store (even if it is so by default) but the Codebucket, which happens to be mapped to the Store by default:
(I just happen to be integrating the Dynamic Multistore feature, and this is one of the things we need to resolve :) )2
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 69 Spryker News
- 894 Developer Corner
- 757 Spryker Development
- 83 Spryker Dev Environment
- 361 Spryker Releases
- 3 Oryx frontend framework
- 34 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 22 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 68 Spryker Safari Questions
- 50 Random