src/Mero/Monolog/Handler/Strategy.php
public function createFactory(array $config)
    {
        if (!array_key_exists('type', $config)) {
            throw new ParameterNotFoundException(
                sprintf("Parameter '%s' not found in handler configuration", 'type')
            );
        }
        $this->hasFactory($config['type']);
        if (isset($config['level'])) {
            $config['level'] = Logger::toMonologLevel($config['level']);
        }

        $factoryClass = &$this->factories[$config['type']];

        return new $factoryClass($config);
    }
public function createFactory(array $config)
    {
        if (!array_key_exists('type', $config)) {
            throw new ParameterNotFoundException(
                sprintf("Parameter '%s' not found in handler configuration", 'type')
            );
        }
        $this->hasFactory($config['type']);
        if (isset($config['level'])) {
            $config['level'] = Logger::toMonologLevel($config['level']);
        }

        $factoryClass = &$this->factories[$config['type']];

        return new $factoryClass($config);
    }
public function createFactory ( array $ config ) { if ( ! array_key_exists ( 'type' , $ config ) ) { throw new ParameterNotFoundException ( sprintf ( "Parameter '%s' not found in handler configuration" , 'type' ) ) ; } $ this -> hasFactory ( $ config [ 'type' ] ) ; if ( isset ( $ config [ 'level' ] ) ) { $ config [ 'level' ] = Logger :: toMonologLevel ( $ config [ 'level' ] ) ; } $ factoryClass = & $ this -> factories [ $ config [ 'type' ] ] ; return new $ factoryClass ( $ config ) ; }
Create a factory object.

@param array $config Configuration parameters

@return AbstractFactory Factory object

@throws ParameterNotFoundException When required parameter not found
Create a factory object .