EmanueleMinotto / TwigCacheBundle

Symfony Bundle for asm89/twig-cache-extension
59 stars 13 forks source link

Fixed serialization for ProfilerExtension to prevent serialize() of c… #6

Closed itinance closed 9 years ago

itinance commented 9 years ago

I've got lots of 404 for _wdt/{token} (Web Profiler) and figured out, that it will throw an exception when the ProfilerExtension of this bundle will be serialized ("Serialization of closures is not supported").

So i added a Serializable-Interface to force only the serialization of getData() and not the whole object. The Web Profiler Toolbar is now working again :)