Provider/EntityProvider.php
public function create(AnnotationWithEntityReference $annotation)
    {
        return null !== $annotation->getFactory()
            ? $this->evaluateEntityInstanceFactory($annotation->getFactory())
            : $this->evaluateEntityInstanceNamespace($annotation->getNamespace());
    }
public function create(AnnotationWithEntityReference $annotation)
    {
        return null !== $annotation->getFactory()
            ? $this->evaluateEntityInstanceFactory($annotation->getFactory())
            : $this->evaluateEntityInstanceNamespace($annotation->getNamespace());
    }
public function create ( AnnotationWithEntityReference $ annotation ) { return null !== $ annotation -> getFactory ( ) ? $ this -> evaluateEntityInstanceFactory ( $ annotation -> getFactory ( ) ) : $ this -> evaluateEntityInstanceNamespace ( $ annotation -> getNamespace ( ) ) ; }
Class provider, given several formats.

Accepted formats:

class = "my.class.parameter",
class = "\My\Class\Namespace",
class = "MmoreramCustomBundle:User",
factory = {
"factory": "Mmoreram\ControllerExtraBundle\Factory\EntityFactory",
"factory": "my_factory_service",
"method": "create",
"static": true
}

@param AnnotationWithEntityReference $annotation

@return object|null
Class provider given several formats .