nelmio/NelmioSolariumBundle — pull request #30 by jasonroman (2013-05-03 20:33:53+00:00)
Title: Fixing serialization for Symfony Profiler

Now that Solarium passes in the logger, the serialize() function in the Symfony profiler attempts to serialize the entire logger in the object. This causes errors when trying to serialize closures from the logger.

Solved by implementing the \Serializable interface and explicitly passing $this->data in the serialize() function. Also added the declaration/initialization of $this->data.