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

Depreciated Twig calls #487

Closed
kissara opened this issue Sep 29, 2015 · 1 comment
Closed

Depreciated Twig calls #487

kissara opened this issue Sep 29, 2015 · 1 comment

Comments

@kissara
Copy link

kissara commented Sep 29, 2015

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); } }
@kissara kissara closed this as completed Sep 29, 2015
@kissara kissara reopened this Sep 29, 2015
@kissara kissara closed this as completed Sep 29, 2015
@stof
Copy link
Contributor

stof commented Sep 29, 2015

This is already fixed in the dev version of jms/serializer

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

No branches or pull requests

2 participants