G
G
grabbee2020-10-06 20:33:35
symfony
grabbee, 2020-10-06 20:33:35

How to share a project by NameSpace in symphony?

In best practice, it is recommended to abandon Bundles in favor of NameSpace, but I have not yet found an example. Everywhere they describe how to divide into bundles. And about how not to share, they did not write. How to branch it?

And for example, I will highlight something in my NS - and in another project it also came in handy for me. I can't just copy the code. There will be duplication. You need to somehow select it in the repository or in a package, and fumble between two projects. This will be a private package, not for everyone. But in the symphony they write that it is recommended to allocate a separate package only if you are going to send it to the public ...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Daria Motorina, 2020-10-06
@grabbee

Fumble between projects - do as a bundle/composer package.
Easy to use in a project - conditionally create < project name >/src/Module/< module name> and write all the logic within App\Module\ModuleName.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question