Manually updating Symfony2 deps file to get Doctrine 2.2?

前端 未结 2 1402
走了就别回头了
走了就别回头了 2021-02-06 07:51

Is possible to manually update deps file to get the latest version of Doctrine 2.2? I\'d like to use the new Paginator component. So basically i wa

2条回答
  •  独厮守ぢ
    2021-02-06 08:33

    By removing the deps.lock file you're obviously putting yourself at risk to getting unstable code.

    I have used the following steps to minimize the risk of breaking something:

    • Write down the current commit hash of the components you'd like to update from deps.lock
    • Find the commit hash from GitHub and write it down.
    • Navigate to a component's directory and type git checkout [commit] where [commit] is the new hash.
    • Clear your cache and verify that the site is still more or less working.
    • Paste the new commit hash to deps.lock and run bin/vendors install

    Keep in mind that I would strongly advise against this. Should you screw things up, you're pretty much on your own and there's no-one to help you.

提交回复
热议问题