thanks! passing into constructor worked for me

On Tue, Sep 27, 2011 at 3:20 AM, Christophe COEVOET <[email protected]> wrote:

>  Le 26/09/2011 09:55, Ahmed Bilal a écrit :
>
> *Hi All,
> *I am facing problem while trying  to generate xml using Serializer . Here
> is the code
> 1. $serializer = new \Symfony\Component\Serializer\Serializer();
> 2. $serializer->addNormalizer(new
> \Symfony\Component\Serializer\Normalizer\CustomNormalizer()());
>
> *Fatal error at line 2.
> Fatal error*: Call to undefined method
> Symfony\Component\Serializer\Serializer::addNormalizer() in *
> C:\xampp\htdocs\symfony\src\Acme\DemoBundle\Controller\DemoController.php*on 
> line
> *77*
>
> There is not addNormalizer method in the Serializer. The normalizers are
> passed through the constructor:
> https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Serializer/Serializer.php
>
> This methods used to exist in an early version of the component but it has
> been removed long ago.
>
> --
> Christophe | Stof
>
>  --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/symfony-devs?hl=en
>

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to