Spryker Commerce Framework DI Magic
After many requests to add more magic to Spryker framework, our architects found a graceful way to enable magic DI. The new approach enables you to get a business models skipping Factory and Dependency provider functions!
We currently consider 3x DI (dependency injection) containers, popular in PHP community:
- PHP-DI (php-di/php-di)
- Symfony DI (symfony/dependency-injection)
- Laravel Container (illuminate/container)
Below you can find a comparison of these three.
Before we make the decision, by tradition we want to get your opinion on it!
Spryker Commerce Framework DI Magic 23 votes
Comments
-
Give me magic, I prefer Symfony DI!
We introduced the Symfony DI in our Project and can recommend this 😋
2 -
Give me magic, I prefer PHP-DI!
@daniel.hansmann Great news! did you completely replace Spryker DI (container) for dependency definition or made them work with the core dependencies (so Spryker core definitions are also available in your DI, so minimal project updates are required)?
1 -
Give me magic, I prefer PHP-DI!
Great initiative, thanks!
I'm linking here another topic from the Hackathon in 2023, where our team investigated this area too:
Back then we decided to use PHP-DI, and I remember it was quite easy to integrate in Spryker, so my vote here also goes to PHP-DI
7 -
Give me any magic! 🤩
any, but please not laravel for our Sprykers!
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 77 Spryker News
- 939 Developer Corner
- 795 Spryker Development
- 90 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 28 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
- 33 Product & Business Questions
- 69 Spryker Safari Questions
- 50 Random