From 2737786bdd60e0cdae8e6e3f689f91393acd35bb Mon Sep 17 00:00:00 2001 From: bobemoe Date: Thu, 3 Sep 2020 09:40:33 +0100 Subject: [PATCH] fix example Uncaught Error: Class 'Avency\Gitea' not found --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d3deb5b..694f77e 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ require_once __DIR__ . '/vendor/autoload.php'; $giteaClient = new Avency\Gitea\Client( 'https://gitea.yourdomain.com', [ - 'type' => Avency\Gitea::AUTH_TOKEN, + 'type' => Avency\Gitea\Client::AUTH_TOKEN, 'auth' => 'your-auth-token' ] ); @@ -40,7 +40,7 @@ or $giteaClient = new Avency\Gitea\Client( 'https://gitea.yourdomain.com', [ - 'type' => Avency\Gitea::AUTH_BASIC_AUTH, + 'type' => Avency\Gitea\Client::AUTH_BASIC_AUTH, 'auth' => [ 'username' => 'your-username', 'password' => 'your-password',