Symfony 4 include another project from different directory

和自甴很熟 提交于 2019-12-24 18:23:23

问题


So, I have an application that consists of 5 different projects.

Each of the projects is a new Symfony 4 project, since I need to host them on separate domains.

My structure is like this: Admin project: /var/www/html/admin Client project: /var/www/html/client Owners project: /var/www/html/owners

Each of the project has its own symfony skelet (src,public,config,bundles,public, etc...)

I know this can be done through bundle, but, what I want to do is to create a new Symfony project (Common) and use it accross all the others. Since ill be having same entities and same common services through projects, I need to include it in each of them.

Is there a way to include this Common project into all others and use services/entities from there?

来源:https://stackoverflow.com/questions/52651571/symfony-4-include-another-project-from-different-directory

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!