src/Loggers/MonologLoggerFormatterFactory.php
/**
     * Creates a new logger handler formatter instance based on the passed formatter configuration.
     *
     * @param \TechDivision\Import\Configuration\Logger\HandlerConfigurationInterface $formatterConfiguration The formatter configuration
     *
     * @return \Monolog\Formatter\FormatterInterface The logger handler formatter instance
     */
Creates a new logger handler formatter instance based on the passed formatter configuration.

@return \Monolog\Formatter\FormatterInterface The logger handler formatter instance
Creates a new logger handler formatter instance based on the passed formatter configuration . @return \ Monolog \ Formatter \ FormatterInterface The logger handler formatter instance
public function factory(FormatterConfigurationInterface $formatterConfiguration)
    {
        $possibleFormatter = $this->getContainer()->get($formatterConfiguration->getId());
        if ($possibleFormatter instanceof FormatterFactoryInterface) {
            return $possibleFormatter->factory($formatterConfiguration);
        }
        return $possibleFormatter;
    }
public function factory ( FormatterConfigurationInterface $ formatterConfiguration ) { $ possibleFormatter = $ this -> getContainer ( ) -> get ( $ formatterConfiguration -> getId ( ) ) ; if ( $ possibleFormatter instanceof FormatterFactoryInterface ) { return $ possibleFormatter -> factory ( $ formatterConfiguration ) ; } return $ possibleFormatter ; }
Creates a new logger handler formatter instance based on the passed formatter configuration.
Creates a new logger handler formatter instance based on the passed formatter configuration .
// create the formatter (factory) instance // query whether or not we've a factory or the instance // return the formatter instance