Set the driver settings ( smtp / sendmail )

@param PHPMailer 			$driver
@return void
329348
protected function setup_driver( &$driver )
	{
		if ( !is_null( $this->config->path ) )
		{
			$driver->Sendmail = $this->config->path;
		}
	}
1328261
protected function setDBParameters($driver, $host, $username, $password, $database, $schema = false, $charset = 'utf8', $collation = 'utf8_unicode_ci', $options = array())
    {
        $this->DBParameters = [
            'driver' => $driver,
            'host' => $host,
            'username' => $username,
            'password' => $password,
            'database' => $database,
            'schema' => $schema,
            'charset' => $charset,
            'collation' => $collation,
            'options' => $options
        ];
    }
1037767
public function setConnectionParam($host, $username, $password, $database = null, $port = null,  $settingList = [])
    {
        $this->setHost($host);
        $this->setUsername($username);
        $this->setPassword($password);
        $this->setDatabase($database);
        $this->setPort($port);

        // call the specific implementation
        $this->setSettings($settingList);
    }
948355
public function addMatcherDriver(MatcherDriver $driver): void
    {
        if (!in_array($driver, $this->drivers, true)) {
            $this->drivers[] = $driver;

            if ($driver->isAvailable()) {
                foreach ($driver->matcherClassNames() as $className) {
                    $this->driverIndex[$className] = $driver;
                }
            }
        }
    }
388884
public function set_emails($emails)
        {
            if (!Arrays::is($emails)) {
                $emails = (array) $emails;
            }
            $this->domains = array();
            foreach ($emails as $email) {
                list($user, $domain) = $this->parse_email($email);
                if (!isset($this->domains[$domain])) {
                    $this->domains[$domain] = array();
                }
                $this->domains[$domain][] = $user;
            }
        }
531498
public function setSenderEmail($senderEmail)
    {
        if ($this->sender == null) {
            $this->sender = new PagSeguroSender();
        }
        $this->sender->setEmail($senderEmail);
    }
1067430
public static function setDriver(string $driver)
    {
        if ( ! self::isValidDriver($driver)) {
            throw new \InvalidArgumentException("invalid session driver '$driver'");
        }

        self::$driver = $driver;
    }
493014
public function sendMail(): void
    {
        if ($this->use_smtp) {
            $mailer = new SmtpMailer([
                'host' => $this->email_host,
                'username' => $this->email_username,
                'password' => $this->email_password,
                'secure' => $this->email_security
            ]);
        } else {
            $mailer = new SendmailMailer();
        }
        $mailer->send($this->email);
    }
209125
public function setCacheDriver($cacheDriver = '')
    {
        if ($cacheDriver != self::DEFAULT_DRIVERS && (extension_loaded($cacheDriver))) {
            $this->cacheDriver = $cacheDriver;
            $this->debug->debug(__FUNCTION__, 'Set Cache Driver: ' . json_encode($cacheDriver) . ' and server is supported');
        } else {
            $this->debug->error(__FUNCTION__, 'Set Cache Driver: ' . json_encode($cacheDriver) . ' and server is not supported, user default driver: ' . self::DEFAULT_DRIVERS);
            $this->cacheDriver = self::DEFAULT_DRIVERS;
        }
        $this->debug->debug(__FUNCTION__, 'setCacheDriver: ', $this->cacheDriver);
    }
1342748
public static function setDriver($driver)
        {
            if (self::isDriverSupported($driver) == false) {
                throw new Exception('The selected database is not supported: "' . $driver . '".');
            }
            self::$driver = $driver;
        }
886944
public function setValue($value, $driver = 'default') {
        $driver = $this->driverKey($driver);
        $this->driverValues[$driver] = $value;
        return $this;
    }
361946
public static function setDriver($driver)
    {

        if (!self::isInstanceOf($driver, YamlInterface::class)) {
            if (self::isString($driver) || self::isStringObject($driver)) {
                $driver = StdObjectWrapper::toString($driver);
                $driver = new $driver;
                if (self::isInstanceOf($driver, YamlInterface::class)) {
                    self::$customDriver = $driver;

                    return;
                }
            }
            throw new YamlException(AbstractException::MSG_INVALID_ARG, ['$driver', YamlInterface::class]);
        }
        self::$customDriver = $driver;

        return;
    }
239644
public function setKey($key)
    {
        $this->key = $key;
        $this->driver->setNamespace($this->key);
    }
508444
private function setDriver($driver)
    {
        $allowedDrivers = [
            'apcu',
            'memcached',
            'pdo',
            'redis',
        ];

        if (!in_array($driver, $allowedDrivers)) {
            throw new NotSupportedDriverException($driver.' is not a supported driver.');
        }

        $this->driver = $driver;
    }
56627
public static function registerDrivers(array $drivers = [])
    {
        $manager = static::getInstance();

        foreach ($drivers as $name => $driver) {
            if (!in_array($name, $manager->excluded)) {
                $class = __NAMESPACE__ . '\\' . studly_case($name) . 'CacheProvider';

                if (class_exists($class)) {
                    $driver = (new $class())->configure($driver);
                    $manager->register($driver);
                } else {
                    throw new DriverNotFound("Cache driver {$name} is not supported");
                }
            }
        }
    }
742921
public void setDriver(final Driver driver) {
        final Driver old = this.driver;

        this.driver = driver;
        this.connectionConfig = System.currentTimeMillis();
        this.connectionValidated = false;
        
        this.pcs.firePropertyChange("driver", old, this.driver);
    }
486701
public function setDriver( IDriver $driver ) : Connection
   {

      $this->_driver = $driver;
      $this->_pdo    = null;

      return $this;

   }