src/Adapter/CsvImportAdapterFactory.php
public function createImportAdapter(SubjectConfigurationInterface $subjectConfiguration)
    {

        // load the import adapter configuration
        $importAdapterConfiguration = $subjectConfiguration->getImportAdapter();

        // load the serializer factory instance
        $serializerFactory = $this->container->get($importAdapterConfiguration->getSerializer()->getId());

        // create the instance and pass the import adapter configuration instance
        $importAdapter = $this->container->get(DependencyInjectionKeys::IMPORT_ADAPTER_IMPORT_CSV);
        $importAdapter->init($importAdapterConfiguration, $serializerFactory);

        // return the initialized import adapter instance
        return $importAdapter;
    }
public function createImportAdapter(SubjectConfigurationInterface $subjectConfiguration)
    {

        // load the import adapter configuration
        $importAdapterConfiguration = $subjectConfiguration->getImportAdapter();

        // load the serializer factory instance
        $serializerFactory = $this->container->get($importAdapterConfiguration->getSerializer()->getId());

        // create the instance and pass the import adapter configuration instance
        $importAdapter = $this->container->get(DependencyInjectionKeys::IMPORT_ADAPTER_IMPORT_CSV);
        $importAdapter->init($importAdapterConfiguration, $serializerFactory);

        // return the initialized import adapter instance
        return $importAdapter;
    }
Creates and returns the import adapter for the subject with the passed configuration.

@param \TechDivision\Import\Configuration\SubjectConfigurationInterface $subjectConfiguration The subject configuration

@return \TechDivision\Import\Adapter\ExportAdapterInterface The import adapter instance