简体   繁体   English

在Silex应用程序中更新使用的pimple版本

[英]Update used pimple version in Silex application

I'm currently creating an application using silex 1.3 . 我目前正在使用silex 1.3创建一个应用程序。

I want to use the dflydev doctrine orm service provider . 我想使用dflydev准则orm服务提供程序

For this service provider pimple >=2.1 is needed - but my silex version comes with pimple 1.x. 对于此服务提供商,需要pimple> = 2.1-但我的silex版本随附pimple1.x。

I've tried to install a newer version via composer, but this results in an error: 我尝试通过composer安装较新的版本,但这会导致错误:

Your requirements could not be resolved to an installable set of packages. 您的要求无法解决为一组可安装的软件包。

Problem 1 - silex/silex v1.3.0 requires pimple/pimple ~1.0 -> no matching package foun d. 问题1-silex / silex v1.3.0要求pimple / pimple〜1.0->没有匹配的软件包。 - silex/silex v1.3.0 requires pimple/pimple ~1.0 -> no matching package foun d. -silex / silex v1.3.0要求pimple / pimple〜1.0->没有匹配的软件包。 - silex/silex v1.3.0 requires pimple/pimple ~1.0 -> no matching package foun d. -silex / silex v1.3.0要求pimple / pimple〜1.0->没有匹配的软件包。 - Installation request for silex/silex v1.3.0 -> satisfiable by silex/silex[ v1.3.0]. -silex / silex v1.3.0的安装要求-> silex / silex [v1.3.0]可以满足。

So my question is: how Can I update this pimple version? 所以我的问题是:如何更新此粉刺版本?

EDIT: I've just seen that there's an older release of the dflydev-doctrine-orm-service-provider, which uses pimple 1.x, so I guess I have to use this version. 编辑:我刚刚看到dflydev-doctrine-orm-service-provider的较旧版本,它使用pimple 1.x,所以我想我必须使用这个版本。 Nevertheless, I would be intereseted if an update is (theoretical) possible. 不过,如果有可能(理论上)进行更新,我会很感兴趣。

Considering how closely Silex is coupled to Pimple, it is not possible to upgrade Pimple without breaking a lot of things in Silex. 考虑到Silex与Pimple的紧密联系,如果不破坏Silex的许多功能,就不可能升级Pimple。 That said, the upgrade has been a work in progress for a while. 也就是说,升级已经进行了一段时间。

There are several closed issues to update Silex to the new version. 将Silex更新到新版本有几个已解决的问题。 Here's one , though there does not seem to be any roadmap for the upgrade. 这是一个 ,尽管似乎没有任何升级路线图。

The master branch of Silex has upgraded to Pimple 3.0. Silex的master分支已升级到Pimple 3.0。 I would watch that branch for any progress. 我会注意那个分支的任何进展。 However, as I'm sure you noticed, Pimple 2-3 is not backwards compatible with Pimple 1.0, so if you do upgrade at some point, your other 3rd party service providers will not work until they are updated as well. 但是,如您所知,Pimple 2-3与Pimple 1.0向后不兼容,因此,如果您在某个时候进行了升级,则其他第3方服务提供商也将无法更新。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM