2011S

Introducing Khepinupdatebundle

I had a little issue with Symfony2, every time a new version is released, there is a super convenient way to update your current version:

  1. Download the vendor-less version
  2. Extract the deps and deps.lock files to your project root directory
  3. Run ./bin/vendor update

All is fine until you start to have a few of personal bundles managed through the deps file. Then you have to carefully merge your own files with the new Symfony2 ones.

Since I don’t really enjoy this tedious work, I created a small “UpdateBundle” that does the trick for you.

It adds a command: “deps:update” that will merge the current deps and deps.lock with the new ones contained in a zip file at the root of your project. So you can download the Symfony2 vendorless distribution as a zip file, put it at the root of your project, run the command and be sure that:

  • All the bundles you took the time to manually add are still there
  • You have the latest version of symfony

Right now the bundle comes as is, has no tests whatsoever and has only be tried by myself. You can find it here: https://github.com/khepin/KhepinUpdateBundle

I’ll add tests to the bundle later. (Mainly when I understand how tests work for the command line. Not very successful so far!)

Maybe I’ll start maintaining a zip file containing just the deps and deps.lock for symfony’s latest version available online and improve this bundle so that it can directly fetch the online versions, thus saving one step.

For now, you can use it “as is if you want to”.