src/Serializers/AdditionalAttributeCsvSerializerFactory.php
public function createSerializer(CsvConfigurationInterface $configuration)
    {

        // load the serializer instance from the container and pass the configuration
        /** @var \TechDivision\Import\Serializers\ConfigurationAwareSerializerInterface $serializer */
        $serializer = $this->container->get(DependencyInjectionKeys::IMPORT_SERIALIZER_CSV_ADDITIONAL_ATTRIBUTE);
        $serializer->init($configuration);

        // return the serializer instance
        return $serializer;
    }
public function createSerializer(CsvConfigurationInterface $configuration)
    {

        // load the serializer instance from the container and pass the configuration
        /** @var \TechDivision\Import\Serializers\ConfigurationAwareSerializerInterface $serializer */
        $serializer = $this->container->get(DependencyInjectionKeys::IMPORT_SERIALIZER_CSV_ADDITIONAL_ATTRIBUTE);
        $serializer->init($configuration);

        // return the serializer instance
        return $serializer;
    }
Creates and returns the serializer instance.

@param \TechDivision\Import\Configuration\CsvConfigurationInterface $configuration The CSV configuration

@return \TechDivision\Import\Serializers\ConfigurationAwareSerializerInterface The serializer instance