I have this complex problem to solve.
We have a symfony2 project with a typical src/name/bundleName with all the code. We have controllers, entities, domain, forms and resources as views and css/js code. We are using Doctrine to access the storage. This project works only for the USA branch of the company. (A)
Our client now is asking to use the same project, for its business in Europe (B). After some analysis, These are the requirements we have discovered:
- One codebase and One repo.
- The data, even users, is not shared between the A and B. There is no middle instance that can see both sets of data.
- We are using mysql and ONE database for now. No postgre schemas or multiple independent databases.
- To avoid code duplication, we have to use the same codebase.