如果我下载此处链接的fat archive http://silex.sensiolabs.org/download,当我的作曲家需要“~2.0”(如同一页面上的指示)时,我得到一个不同的silex,例如,ServiceProviderInterace不会存在于作曲家版本的silex / src / Silex中,而在fat存档中则存在。看github,作曲家版本匹配......但是我需要带有ServiceProviderInterface的版本......
我一定是做错了!请咨询
答案 0 :(得分:0)
在Silex 2.0中,有一些更改, ServiceProviderInterface 被拆分为 EventListenerProviderInterface 和 BootableProviderInterface ,并被移动到Api目录中。 这里:http://silex.sensiolabs.org/doc/master/changelog.html
在你提供的fat存档中,如果你查看composer.json文件,那么它就是silex的1.1版,这就是为什么你有 ServiceProviderInterface 。