src/LoggerFactory.php
public static function getMessage(array $config = []): Message
    {
        $message = Message::class;
        $msgConf = $config['message'] ?? [];
        if (!empty($config['message']['instance'])) {
            $message = $config['message']['instance'];
            unset($config['message']['instance']);
        }
        $message = new $message($msgConf);

        return $message;
    }
public static function getMessage(array $config = []): Message
    {
        $message = Message::class;
        $msgConf = $config['message'] ?? [];
        if (!empty($config['message']['instance'])) {
            $message = $config['message']['instance'];
            unset($config['message']['instance']);
        }
        $message = new $message($msgConf);

        return $message;
    }
public static function getMessage ( array $ config = [ ] ) : Message { $ message = Message :: class ; $ msgConf = $ config [ 'message' ] ?? [ ] ; if ( ! empty ( $ config [ 'message' ] [ 'instance' ] ) ) { $ message = $ config [ 'message' ] [ 'instance' ] ; unset ( $ config [ 'message' ] [ 'instance' ] ) ; } $ message = new $ message ( $ msgConf ) ; return $ message ; }
Initializes a Message instance from the logger configuration.
Message configuration must be set in an array with the key "message".

@param array $config     Logger configuration
@return Message
Initializes a Message instance from the logger configuration . Message configuration must be set in an array with the key message .