mirror of
https://github.com/avency/Gitea.git
synced 2025-10-29 10:42:33 +01:00
fix example
Uncaught Error: Class 'Avency\Gitea' not found
This commit is contained in:
@ -30,7 +30,7 @@ require_once __DIR__ . '/vendor/autoload.php';
|
|||||||
$giteaClient = new Avency\Gitea\Client(
|
$giteaClient = new Avency\Gitea\Client(
|
||||||
'https://gitea.yourdomain.com',
|
'https://gitea.yourdomain.com',
|
||||||
[
|
[
|
||||||
'type' => Avency\Gitea::AUTH_TOKEN,
|
'type' => Avency\Gitea\Client::AUTH_TOKEN,
|
||||||
'auth' => 'your-auth-token'
|
'auth' => 'your-auth-token'
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
@ -40,7 +40,7 @@ or
|
|||||||
$giteaClient = new Avency\Gitea\Client(
|
$giteaClient = new Avency\Gitea\Client(
|
||||||
'https://gitea.yourdomain.com',
|
'https://gitea.yourdomain.com',
|
||||||
[
|
[
|
||||||
'type' => Avency\Gitea::AUTH_BASIC_AUTH,
|
'type' => Avency\Gitea\Client::AUTH_BASIC_AUTH,
|
||||||
'auth' => [
|
'auth' => [
|
||||||
'username' => 'your-username',
|
'username' => 'your-username',
|
||||||
'password' => 'your-password',
|
'password' => 'your-password',
|
||||||
|
|||||||
Reference in New Issue
Block a user