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


Creates and returns the export adapter for the subject with the passed configuration .
public function createExportAdapter(ExportAdapterAwareConfigurationInterface $configuration)
    {
        $exportAdapterConfiguration = $configuration->getExportAdapter();
        $serializerFactory = $this->container->get($exportAdapterConfiguration->getSerializer()->getId());
        $exportAdapter = $this->container->get(DependencyInjectionKeys::IMPORT_ADAPTER_EXPORT_CSV);
        $exportAdapter->init($exportAdapterConfiguration, $serializerFactory);
        return $exportAdapter;
    }
public function createExportAdapter ( ExportAdapterAwareConfigurationInterface $ configuration ) { $ exportAdapterConfiguration = $ configuration -> getExportAdapter ( ) ; $ serializerFactory = $ this -> container -> get ( $ exportAdapterConfiguration -> getSerializer ( ) -> getId ( ) ) ; $ exportAdapter = $ this -> container -> get ( DependencyInjectionKeys :: IMPORT_ADAPTER_EXPORT_CSV ) ; $ exportAdapter -> init ( $ exportAdapterConfiguration , $ serializerFactory ) ; return $ exportAdapter ; }
Creates and returns the export adapter for the subject with the passed configuration.
Creates and returns the export adapter for the subject with the passed configuration .
// load the export adapter configuration // load the serializer factory instance // create the instance and pass the export adapter configuration instance // return the initialized export adapter instance