src/Mero/Monolog/Handler/Strategy.php
protected function hasFactory($type)
    {
        if (!array_key_exists($type, $this->factories)) {
            throw new HandlerNotFoundException(
                sprintf("Type '%s' not found in handler factory", $type)
            );
        }
        $factoryClass = &$this->factories[$type];
        if (!class_exists($factoryClass)) {
            throw new \BadMethodCallException(
                sprintf("Type '%s' not implemented", $type)
            );
        }

        return true;
    }
protected function hasFactory($type)
    {
        if (!array_key_exists($type, $this->factories)) {
            throw new HandlerNotFoundException(
                sprintf("Type '%s' not found in handler factory", $type)
            );
        }
        $factoryClass = &$this->factories[$type];
        if (!class_exists($factoryClass)) {
            throw new \BadMethodCallException(
                sprintf("Type '%s' not implemented", $type)
            );
        }

        return true;
    }
protected function hasFactory ( $ type ) { if ( ! array_key_exists ( $ type , $ this -> factories ) ) { throw new HandlerNotFoundException ( sprintf ( "Type '%s' not found in handler factory" , $ type ) ) ; } $ factoryClass = & $ this -> factories [ $ type ] ; if ( ! class_exists ( $ factoryClass ) ) { throw new \ BadMethodCallException ( sprintf ( "Type '%s' not implemented" , $ type ) ) ; } return true ; }
Verifies that the factory class exists.

@param string $type Name of type

@return bool

@throws HandlerNotFoundException When handler factory not found
@throws \BadMethodCallException  When handler not implemented
Verifies that the factory class exists .