/**
  * @param string                    $documentClass       The type the provider is for
  * @param DocumentMetadataCollector $metadataCollector   The metadata collector
  * @param IndexManager              $sourceIndexManager  The index manager of the data source
  * @param string                    $sourceDocumentClass The type the data is coming from
  */
 public function __construct($documentClass, DocumentMetadataCollector $metadataCollector, IndexManager $sourceIndexManager, $sourceDocumentClass)
 {
     parent::__construct($documentClass);
     $this->sourceIndexManager = $sourceIndexManager;
     $this->metadataCollector = $metadataCollector;
     $this->sourceDocumentClass = $sourceDocumentClass;
 }
 /**
  * @param string                     $documentClass The type the provider is for
  * @param DocumentMetadataCollection $metadata      The metadata collection for all ES types
  * @param EntityManager              $em            The Doctrine entity manager
  */
 public function __construct($documentClass, DocumentMetadataCollection $metadata, EntityManager $em)
 {
     parent::__construct($documentClass, $metadata);
     $this->em = $em;
     // TODO: Doesn't seem to do anything, but just in case...
     $this->em->getConnection()->getConfiguration()->setSQLLogger(null);
 }
 /**
  * @param string        $documentClass The type the provider is for
  * @param EntityManager $em            The Doctrine entity manager
  */
 public function __construct($documentClass, EntityManager $em)
 {
     parent::__construct($documentClass);
     $this->em = $em;
 }