src/Loggers/LineFormatterFactory.php
/**
     * Creates a new formatter instance based on the passed configuration.
     *
     * @param \TechDivision\Import\Configuration\Logger\FormatterConfigurationInterface $formatterConfiguration The formatter configuration
     *
     * @return object The formatter instance
     */
Creates a new formatter instance based on the passed configuration.

@return object The formatter instance
Creates a new formatter instance based on the passed configuration . @return object The formatter instance
public function factory(FormatterConfigurationInterface $formatterConfiguration)
    {
        $reflectionClass = new \ReflectionClass(LineFormatter::class);
        return $reflectionClass->newInstanceArgs(ConfigurationUtil::prepareConstructorArgs($reflectionClass, $formatterConfiguration->getParams()));
    }
public function factory ( FormatterConfigurationInterface $ formatterConfiguration ) { $ reflectionClass = new \ ReflectionClass ( LineFormatter :: class ) ; return $ reflectionClass -> newInstanceArgs ( ConfigurationUtil :: prepareConstructorArgs ( $ reflectionClass , $ formatterConfiguration -> getParams ( ) ) ) ; }
Creates a new formatter instance based on the passed configuration.
Creates a new formatter instance based on the passed configuration .