What are the Slack Archives?
Itโs a history of our time together in the Slack Community! Thereโs a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you wonโt be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
Hey everyone if I want to move all the files related to the product module from `/vendor` directory
Hey everyone if I want to move all the files related to the product module from /vendor
directory to src/Pyz/Zed
how can I do that??
Comments
-
First you should question if this is really necessary.
If you want to modify certain functionality you can extend the module including the functionality by providing the same class in the
Pyz
namespace and adapting the relatedFactory
If you really want to modify the whole module, you can just copy over all files from the module and adapt the namespace by replacing
Spryker
withPyz
, but there is very rarely, I would even say never, the case to do so.0 -
@UL6DGRULR Thanks for the answer. I am exploring the architecture and finding ways to do the modifications. I was working with laravel and it is providing features to do that. That's why I asked the questions.
0 -
If you just copy the whole code you will from that time on have to maintain it.
That's why Spryker provides the ability to only overwrite the pieces of the code, preferable by using composition over inheritance, so you need to maintain only the code you really need and the rest of the module is maintained by Spryker, which significantly lowers your maintenance burden.0 -
I really appreciate this ideology. ๐
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 78 Spryker News
- 936 Developer Corner
- 793 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
- 27 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