Best Way to Organize PHP Class Hierarchy

前端 未结 2 1119
轻奢々
轻奢々 2021-01-21 05:02

I\'ve got a somewhat primitive framework I\'ve been using for most of my projects, but a general design issue came to mind that I haven\'t been able to work out yet. For a given

2条回答
  •  后悔当初
    2021-01-21 05:31

    What it really comes down to is what are you going to do when you update Framework\Control.php in Application XYZ. Are you going to go back to Application ABC and make that same change? What if it's a critical bug?

    For maintainability of all of your projects I'd go with your second option.

提交回复
热议问题