コード例 #1
0
 /**
  * @param ObjectManager                  $om
  * @param CompletenessManager            $completenessManager
  * @param SavingOptionsResolverInterface $optionsResolver
  * @param EventDispatcherInterface       $eventDispatcher
  * @param BulkVersionPersister           $versionPersister
  * @param NormalizerInterface            $normalizer
  * @param MongoObjectsFactory            $mongoFactory
  * @param string                         $productClass
  * @param string                         $databaseName
  */
 public function __construct(ObjectManager $om, CompletenessManager $completenessManager, SavingOptionsResolverInterface $optionsResolver, EventDispatcherInterface $eventDispatcher, BulkVersionPersister $versionPersister, NormalizerInterface $normalizer, MongoObjectsFactory $mongoFactory, $productClass, $databaseName)
 {
     parent::__construct($om, $completenessManager, $optionsResolver, $eventDispatcher);
     $this->versionPersister = $versionPersister;
     $this->normalizer = $normalizer;
     $this->mongoFactory = $mongoFactory;
     $this->productClass = $productClass;
     $this->databaseName = $databaseName;
 }
コード例 #2
0
 /**
  * {@inheritdoc}
  *
  * @param BulkSaverInterface  $versionSaver
  * @param NormalizerInterface $normalizer
  * @param MongoObjectsFactory $mongoFactory
  * @param string              $productClass
  * @param string              $databaseName
  */
 public function __construct(DocumentManager $documentManager, CompletenessManager $completenessManager, SavingOptionsResolverInterface $optionsResolver, EventDispatcherInterface $eventDispatcher, BulkVersionBuilderInterface $bulkVersionBuilder, BulkSaverInterface $versionSaver, NormalizerInterface $normalizer, MongoObjectsFactory $mongoFactory, $productClass, $databaseName)
 {
     parent::__construct($documentManager, $completenessManager, $optionsResolver, $eventDispatcher);
     $this->bulkVersionBuilder = $bulkVersionBuilder;
     $this->versionSaver = $versionSaver;
     $this->normalizer = $normalizer;
     $this->mongoFactory = $mongoFactory;
     $this->productClass = $productClass;
     $this->databaseName = $databaseName;
     $this->collection = $this->objectManager->getDocumentCollection($this->productClass);
 }