symfony/symfony — pull request #4621 by shieldo (2012-06-20 11:13:12+00:00)
Title: [Security] fixed exception message in EncoderFactory

Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: n/a
Todo: n/a
License of the code: MIT
Documentation PR: n/a

In ``EncoderFactory``, fixed the exception message so it uses the class of the provided user (string or object), rather than the class key for whatever happens to be the last loaded encoder.