public static function configure($config = []) {
    $defaults = include dirname(__DIR__).'/conf/defaults.php';
    self::$config = array_replace_recursive($defaults, $config);

    if (isset(self::$driver)) {
      if (self::$driver->connected) {
        self::$driver->disconnect();
      }
      self::$driver = null;
    }

    $class = '\\Nymph\\Drivers\\'.self::$config['driver'].'Driver';

    $Nymph = new $class(self::$config);
    if (class_exists('\\SciActive\\Hook')) {
      \SciActive\Hook::hookObject($Nymph, 'Nymph->');
    }
    if (self::$config['pubsub']) {
      \Nymph\PubSub\HookMethods::setup();
    }
    self::$driver = $Nymph;
  }