src/NotifierSmsAfricasTalkingService.php
private function _bootstrapSmsHandler($configurationArr, $isBehindProxy = false){
        //validate that username and APIKEY exist in the configuration
        if (
            !isset($configurationArr["USERNAME"])
            && !isset($configurationArr["APIKEY"])
        ) {
            throw new NotifierEmailException("The username or APIKEY is not configured");
        }
        
        $userName = $configurationArr["USERNAME"];
        $apiKey   = $configurationArr["APIKEY"];
        
        //if behind proxy, we also need proxy settings
        if($isBehindProxy){
            if (
                !isset($configurationArr["PROXY_AUTH"])
                && !isset($configurationArr["PROXY_TYPE"])
                && !isset($configurationArr["PROXY_SERVER"])
                && !isset($configurationArr["PROXY_LOGIN"])
            ){
                throw new NotifierEmailException("The proxy settings are not configured properly");
            }
            
            $proxySettings = array (
                "PROXYAUTH"   => $configurationArr["PROXY_AUTH"],
                "PROXYTYPE"   => $configurationArr["PROXY_TYPE"],
                "PROXYSERVER" => $configurationArr["PROXY_SERVER"],
                "PROXYLOGIN"  => $configurationArr["PROXY_LOGIN"]
            );
            
            //initiate the handler with credentials
            $this->mailHandler = new \AfricasTalkingGatewayWithProxy(
                $userName,
                $apiKey,
                $proxySettings
            );
        } else {
            $this->mailHandler = new \AfricasTalkingGateway(
                $userName,
                $apiKey
            );
        }
        
        //Set the configuration array
        $this->setConfiguration($configurationArr);
    }
private function _bootstrapSmsHandler($configurationArr, $isBehindProxy = false){
        //validate that username and APIKEY exist in the configuration
        if (
            !isset($configurationArr["USERNAME"])
            && !isset($configurationArr["APIKEY"])
        ) {
            throw new NotifierEmailException("The username or APIKEY is not configured");
        }
        
        $userName = $configurationArr["USERNAME"];
        $apiKey   = $configurationArr["APIKEY"];
        
        //if behind proxy, we also need proxy settings
        if($isBehindProxy){
            if (
                !isset($configurationArr["PROXY_AUTH"])
                && !isset($configurationArr["PROXY_TYPE"])
                && !isset($configurationArr["PROXY_SERVER"])
                && !isset($configurationArr["PROXY_LOGIN"])
            ){
                throw new NotifierEmailException("The proxy settings are not configured properly");
            }
            
            $proxySettings = array (
                "PROXYAUTH"   => $configurationArr["PROXY_AUTH"],
                "PROXYTYPE"   => $configurationArr["PROXY_TYPE"],
                "PROXYSERVER" => $configurationArr["PROXY_SERVER"],
                "PROXYLOGIN"  => $configurationArr["PROXY_LOGIN"]
            );
            
            //initiate the handler with credentials
            $this->mailHandler = new \AfricasTalkingGatewayWithProxy(
                $userName,
                $apiKey,
                $proxySettings
            );
        } else {
            $this->mailHandler = new \AfricasTalkingGateway(
                $userName,
                $apiKey
            );
        }
        
        //Set the configuration array
        $this->setConfiguration($configurationArr);
    }
function _bootstrapSmsHandler() - Prepare the mailHandler by setting the configurations

@return void

@access private