Skip to content

Commit b767e07

Browse files
committed
feat: update for 1.0.0-RC1
1 parent 80ec3cd commit b767e07

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

docs/avatars.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ When one dimension is specified and the other is 0, the image is scaled with pre
113113
| name | string | Full Name. When empty, current user name or email will be used. Max length: 128 chars. | |
114114
| width | integer | Image width. Pass an integer between 0 to 2000. Defaults to 100. | 500 |
115115
| height | integer | Image height. Pass an integer between 0 to 2000. Defaults to 100. | 500 |
116-
| color | string | Changes text color. By default a random color will be picked and stay will persistent to the given name. | |
117116
| background | string | Changes background color. By default a random color will be picked and stay will persistent to the given name. | |
118117

119118
## Get QR Code

src/Appwrite/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class Client
4040
'x-sdk-name'=> 'PHP',
4141
'x-sdk-platform'=> 'server',
4242
'x-sdk-language'=> 'php',
43-
'x-sdk-version'=> '6.1.0-RC1',
43+
'x-sdk-version'=> '7.0.0-RC1',
4444
];
4545

4646
/**

src/Appwrite/Services/Avatars.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -256,13 +256,12 @@ public function getImage(string $url, int $width = null, int $height = null): st
256256
* @param string $name
257257
* @param int $width
258258
* @param int $height
259-
* @param string $color
260259
* @param string $background
261260
* @throws AppwriteException
262261
* @return string
263262
264263
*/
265-
public function getInitials(string $name = null, int $width = null, int $height = null, string $color = null, string $background = null): string
264+
public function getInitials(string $name = null, int $width = null, int $height = null, string $background = null): string
266265
{
267266
$path = str_replace([], [], '/avatars/initials');
268267

@@ -279,10 +278,6 @@ public function getInitials(string $name = null, int $width = null, int $height
279278
$params['height'] = $height;
280279
}
281280

282-
if (!is_null($color)) {
283-
$params['color'] = $color;
284-
}
285-
286281
if (!is_null($background)) {
287282
$params['background'] = $background;
288283
}

0 commit comments

Comments
 (0)