We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Fail message, i can't delete sorry =)
The text was updated successfully, but these errors were encountered:
This is already fixed in the dev version of jms/serializer
Sorry, something went wrong.
No branches or pull requests
Fail message, i can't delete sorry =)
serializer = $serializer; } public function getFilters() { return array( new \Twig_SimpleFilter('serialize', array($this, 'serialize')), ); } public function getFunctions() { return array( new \Twig_SimpleFunction('serialization_context', array($this, 'createContext')), ); } /** - Creates the serialization context * - @return SerializationContext */ public function createContext() { return SerializationContext::create(); } /** - @param object $object - @param string $type - @param SerializationContext $context */ public function serialize($object, $type = 'json', SerializationContext $context = null) { return $this->serializer->serialize($object, $type, $context); } }The text was updated successfully, but these errors were encountered: