Symfony2 FOSRestBundle handleView() doesn't work
<p>Just created a new project with symfony2 and installed FOSRestBundle. 
Controller example:</p>

<pre><code>&lt;?php

namespace ApiBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use FOS\RestBundle\Controller\FOSRestController;


class TestController extends FOSRestController
{
    public function TestAction()
    {
        $data = array ('1', '2', '3', 'four'); // get data, in this case list of users.
        $view = $this-&gt;view($data, 200)
            -&gt;setTemplate("ApiBundle:Test:test.html.twig")
            -&gt;setTemplateVar('test')
        ;

        return $this-&gt;handleView($view);       
    }

}
</code></pre>

<p>Got error message:</p>

<pre><code>You have requested a non-existent service "fos_rest.view_handler".
</code></pre>

<p>Does anyone have an idea about this?</p>