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

    // Set up access control hooks when Nymph is called.
    if (!isset(Nymph::$driver)) {
      throw new Exception('Tilmeld can\'t be configured before Nymph.');
    }
    HookMethods::setup();
    self::authenticate();
  }
public static function configure($config = []) {
    $defaults = include dirname(__DIR__).'/conf/defaults.php';
    self::$config = array_replace($defaults, $config);

    // Set up access control hooks when Nymph is called.
    if (!isset(Nymph::$driver)) {
      throw new Exception('Tilmeld can\'t be configured before Nymph.');
    }
    HookMethods::setup();
    self::authenticate();
  }
public static function configure ( $ config = [ ] ) { $ defaults = include dirname ( __DIR__ ) . '/conf/defaults.php' ; self :: $ config = array_replace ( $ defaults , $ config ) ; // Set up access control hooks when Nymph is called. if ( ! isset ( Nymph :: $ driver ) ) { throw new Exception ( 'Tilmeld can\'t be configured before Nymph.' ) ; } HookMethods :: setup ( ) ; self :: authenticate ( ) ; }
Apply configuration to Tilmeld.

$config should be an associative array of Tilmeld configuration. Use the
following form:

[
'setup_url' => 'http://example.com/tilmeld/',
'create_admin' => false
]

@param array $config An associative array of Tilmeld's configuration.
Apply configuration to Tilmeld .