Fix example app deprecation warnings with Symfony 2.2