}
$config = new Config();
-$config->setupCheck();
+$config->load();
$options = new Options();
try {
exit(1);
}
+$auth = new Authenticator();
+try {
+ $auth->authenticate($config);
+} catch (\Exception $e) {
+ header('HTTP/1.0 401 Unauthorized');
+ header('Content-type: text/plain');
+ echo $e->getMessage() . "\n";
+ exit(1);
+}
+
$rep = new Repository();
$rep->setConfig($config);
try {