Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Profile extension fixed serialization #7

Merged
merged 8 commits into from
Oct 4, 2015
Merged

Profile extension fixed serialization #7

merged 8 commits into from
Oct 4, 2015

Conversation

itinance
Copy link
Contributor

@itinance itinance commented Oct 3, 2015

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 :)

}

/**
* @covers ::load
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Travis is giving a problem because this test doesn't cover a \EmanueleMinotto\TwigCacheBundle\Twig\ProfilerExtension::load method.

Replace it with:

    /**
     * @covers ::serialize
     * @covers ::unserialize
     */

@itinance
Copy link
Contributor Author

itinance commented Oct 4, 2015

All checks have passed now :)

EmanueleMinotto added a commit that referenced this pull request Oct 4, 2015
@EmanueleMinotto EmanueleMinotto merged commit 0e0f9be into EmanueleMinotto:master Oct 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants