private function loadConfigType($config_type)
    {
        // Get Path for config
        if ($config_type === 'default') {
            $config_path = self::DEFAULT_CONFIG_PATH;
        } else {
            $config_path = self::DEFAULT_CONFIG_MESSAGE_TYPE_PATH.'.'.$config_type;
        }

        $config_array = $this->config->get($config_path);

        if (is_null($config_array)) {
            throw new UnknownMessageTypeException('Pigeon config not found for type: '.$config_type);
        }

        if (!is_array($config_array)) {
            throw new InvalidMessageTypeException('Pigeon config not set up properly for type: '.$config_type);
        }

        if($this->setConfigOptions($config_array)) {
            $this->message_type = $config_type;
        }

        return true;

    }
private function loadConfigType($config_type)
    {
        // Get Path for config
        if ($config_type === 'default') {
            $config_path = self::DEFAULT_CONFIG_PATH;
        } else {
            $config_path = self::DEFAULT_CONFIG_MESSAGE_TYPE_PATH.'.'.$config_type;
        }

        $config_array = $this->config->get($config_path);

        if (is_null($config_array)) {
            throw new UnknownMessageTypeException('Pigeon config not found for type: '.$config_type);
        }

        if (!is_array($config_array)) {
            throw new InvalidMessageTypeException('Pigeon config not set up properly for type: '.$config_type);
        }

        if($this->setConfigOptions($config_array)) {
            $this->message_type = $config_type;
        }

        return true;

    }
private function loadConfigType ( $ config_type ) { // Get Path for config if ( $ config_type === 'default' ) { $ config_path = self :: DEFAULT_CONFIG_PATH ; } else { $ config_path = self :: DEFAULT_CONFIG_MESSAGE_TYPE_PATH . '.' . $ config_type ; } $ config_array = $ this -> config -> get ( $ config_path ) ; if ( is_null ( $ config_array ) ) { throw new UnknownMessageTypeException ( 'Pigeon config not found for type: ' . $ config_type ) ; } if ( ! is_array ( $ config_array ) ) { throw new InvalidMessageTypeException ( 'Pigeon config not set up properly for type: ' . $ config_type ) ; } if ( $ this -> setConfigOptions ( $ config_array ) ) { $ this -> message_type = $ config_type ; } return true ; }
Load the config type passed from configuration file

@param $config_type
@return bool
@throws InvalidMessageTypeException
@throws UnknownMessageTypeException
Load the config type passed from configuration file