dongyiyu882684 2013-04-09 14:06
浏览 37
已采纳

Symfony 2和项目

Let's consider I have different projects for my company. What is the best practice concerning symfony 2 ?

1. Add new bundle for each project in the same symfony 2 skeleton (there could be several bundles for one project: even shared bundles between differents project)

2. Add a new Symfony 2 skeleton for one project (there could be several bundles for one project)

if way number 1 is acceptable, is there a maximum number of bundles for one symfony 2 skeleton ?

  • 写回答

1条回答 默认 最新

  • douzhi3105 2013-04-09 14:18
    关注

    A Bundle is a logical component in your website like a backend or a menue. You should build your bundles global that you can use it in new projects.

    I would prefer to make more instances and build bundles that were included in your projects (vendor folder). Then you have single components and can use it in new projects.

    • The advantage is that you can have different versions in different projects. Perhaps you need another version of a bundle in Project A and Project B. Thats its a bit complicated with one instance.

    • When need to scale your website its better to have more instances to put it on different servers. When you have only one instance with all projects then you need everytime the complete sources.

    You can build your own composer packages to update and deploy over composer.

    https://packagist.org/

    I think there are some more package builder.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 微信会员卡等级和折扣规则
  • ¥15 微信公众平台自制会员卡可以通过收款码收款码收款进行自动积分吗
  • ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
  • ¥15 gdf格式的脑电数据如何处理matlab
  • ¥20 重新写的代码替换了之后运行hbuliderx就这样了
  • ¥100 监控抖音用户作品更新可以微信公众号提醒
  • ¥15 UE5 如何可以不渲染HDRIBackdrop背景
  • ¥70 2048小游戏毕设项目
  • ¥20 mysql架构,按照姓名分表
  • ¥15 MATLAB实现区间[a,b]上的Gauss-Legendre积分