public static function config($config) { if (isset($config->root) && isset($config->branches) && isset($config->branches->remote) && isset($config->branches->local)) { self::$root = $config->root; self::$remoteBranch = $config->branches->remote; self::$localBranch = $config->branches->local; } else { header('HTTP/1.1 500 Internal Server Error'); Log::event('Malformed configuration: missing properties in "git" object'); Log::client('Malformed configuration on server'); exit(1); } }