如何在Symfony 2.8中创建$ doctrineExtractor?

How to create $doctrineExtractor in Symfony 2.8? It requires ClassMetadataFactory in the constructor, but i do not understand how to create it?

I want to get property info about the Entity. Additionally, i want to understand where and how to use SerializerExtractor?

<?php  
// xController; 

use Symfony\Component\PropertyInfo\PropertyInfoExtractor;
use Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor; 
use Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor;
use Symfony\Component\PropertyInfo\Extractor\SerializerExtractor;
use Symfony\Bridge\Doctrine\PropertyInfo\DoctrineExtractor;
use Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactory;

use Symfony\Component\HttpFoundation\Request;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;

namespace MeetingBundle\Controller;
/**  * @Route("/x") */
class xController extends Controller {

     * @Route("/", name="x_prop")
     * @Method("GET|POST")
     * @Template("MeetingBundle:help:prop.html.twig")
     */
    public function propAction() {

$reflectionExtractor = new ReflectionExtractor();
$phpDocExtractor = new PhpDocExtractor();
$doctrineExtractor = new DoctrineExtractor(); //how to contruct here ??
$propertyInfo = new PropertyInfoExtractor(
    array($reflectionExtractor),
    array($doctrineExtractor, $phpDocExtractor, $reflectionExtractor),
    array($phpDocExtractor),
    array($reflectionExtractor) );
    $propertyInfo->getProperties($entityName);
    print_r($propertyInfo);
..
}}