symfony-cmf/CreateBundle — pull request #28 by Burgov (2013-02-02 09:59:32+00:00)
Title: Use the JMS Serializer to serialize the image objects

I'd recon, since [we're requiring the JMS Serializer Bundle](https://github.com/symfony-cmf/CreateBundle/blob/master/composer.json#L21), we might as well start using it.

This PR has one loose end which I'll fix if this PR is going to be pulled: I had to copy the protected "getNameFromImage" method from the controller. Probably this (and some other) method should be moved away into it's own service.

This allows me to extend the Handler and easily add some extra fields to the serialized data (caption, width, height of the image)