As Feed-io-bundle is now Symfony 3 compliant, the next logical move was to upgrade its demo. The application is just composed of the bundle itself and Bootstrap so the upgrade process should be easy to follow. Let’s see what’s in the documentation :
There are a couple of steps to upgrading a major version:
- Make your code deprecation free
- Update to the new major version via Composer
- Update your code to work with the new version
Three steps and every thing seems cristal clear, here we go.
Replace deprecated code and configuration
According to the cookbook, you’ll have to replace everything that became deprecated during Symfony 2’s evolution. To go through the first step, Symfony provides a package called symfony/phpunit-bridge which detects deprecated parts of your code and shows you the way to correct it. Another way to go is to pay attention to deprecations Symfony notices to your application’s log, which means to manually test the whole application. Good luck with that. feedio-demo has unit tests (well in fact, one), I’ll use the bridge :
OK, that’s easy. Only one configuration to fix and feedio-demo is ready for the dependencies upgrade.