Resolved issue #38 of symfony 2.2 deprecation message.