src/Adapter/CsvImportAdapterFactory.php
/**
     * Creates and returns the import adapter for the subject with the passed configuration.
     *
     * @param \TechDivision\Import\Configuration\ImportAdapterAwareConfigurationInterface $configuration The subject configuration
     *
     * @return \TechDivision\Import\Adapter\ExportAdapterInterface The import adapter instance
     */
Creates and returns the import adapter for the subject with the passed configuration.


Creates and returns the import adapter for the subject with the passed configuration .
public function createImportAdapter(ImportAdapterAwareConfigurationInterface $configuration)
    {
        $importAdapterConfiguration = $configuration->getImportAdapter();
        $serializerFactory = $this->container->get($importAdapterConfiguration->getSerializer()->getId());
        $importAdapter = $this->container->get(DependencyInjectionKeys::IMPORT_ADAPTER_IMPORT_CSV);
        $importAdapter->init($importAdapterConfiguration, $serializerFactory);
        return $importAdapter;
    }
public function createImportAdapter ( ImportAdapterAwareConfigurationInterface $ configuration ) { $ importAdapterConfiguration = $ configuration -> getImportAdapter ( ) ; $ serializerFactory = $ this -> container -> get ( $ importAdapterConfiguration -> getSerializer ( ) -> getId ( ) ) ; $ importAdapter = $ this -> container -> get ( DependencyInjectionKeys :: IMPORT_ADAPTER_IMPORT_CSV ) ; $ importAdapter -> init ( $ importAdapterConfiguration , $ serializerFactory ) ; return $ importAdapter ; }
Creates and returns the import adapter for the subject with the passed configuration.
Creates and returns the import adapter for the subject with the passed configuration .
// load the import adapter configuration // load the serializer factory instance // create the instance and pass the import adapter configuration instance // return the initialized import adapter instance