duplicate config in stores.php?
I can't help but notice that in the demoshop stores.php, the contents is almost duplicated, having a if (getenv('SPRYKER_ACTIVE_STORES')) { statement at the beginning of the first block.
I don't seem to find any documented explanation to this behaviour. Can someone explain why is this?
Best Answer
-
That file is to be deprecated as stores would be stored in the database. Just useful as a fallback if not in a Dynamic Multistore as for Dynamic MultiStore you´d have the DataImport for your stores and the Backoffice
1
Answers
-
Hi,
What do you mean by duplicated ?
If there is that en variable, then the stores array is returned , otherwise there is the fallback configuration fo DE ,AT and US.
If you search for the env variable inside the docker folder, you´re going to see that they´re set in there according to the regions´ settings in the deploy file
0 -
Hi @Hidran Arias ! Yes, my point being why do we need a fallback configuration at all?
Within the docker sdk I saw that spryker_active_stores is just collecting al stores defined in the deployment file regions.
I think having this fallback configuration just creates more confusion than needed, and I don't see related documentation (might be an old topic now anyways, as dynamic multistore will probably kill that part of the code).0 -
That file is to be deprecated as stores would be stored in the database. Just useful as a fallback if not in a Dynamic Multistore as for Dynamic MultiStore you´d have the DataImport for your stores and the Backoffice
1
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 68 Spryker News
- 890 Developer Corner
- 753 Spryker Development
- 83 Spryker Dev Environment
- 360 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