public static function setDefaultGateway($name)
    {
        if (self::__getClassPath($name)) {
            Symphony::Configuration()->set('default_gateway', $name, 'Email');
            Symphony::Configuration()->write();
        } else {
            throw new EmailGatewayException(__('This gateway can not be found. Can not save as default.'));
        }
    }
public static function setDefaultGateway($name)
    {
        if (self::__getClassPath($name)) {
            Symphony::Configuration()->set('default_gateway', $name, 'Email');
            Symphony::Configuration()->write();
        } else {
            throw new EmailGatewayException(__('This gateway can not be found. Can not save as default.'));
        }
    }
public static function setDefaultGateway ( $ name ) { if ( self :: __getClassPath ( $ name ) ) { Symphony :: Configuration ( ) -> set ( 'default_gateway' , $ name , 'Email' ) ; Symphony :: Configuration ( ) -> write ( ) ; } else { throw new EmailGatewayException ( __ ( 'This gateway can not be found. Can not save as default.' ) ) ; } }
Sets the default gateway.
Will throw an exception if the gateway can not be found.

@throws EmailGatewayException
@param string $name
@return void
Sets the default gateway . Will throw an exception if the gateway can not be found .