-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Make possible for apps to define their own avatar types #24579
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
b553b43
184742e
2cc22a0
1552add
b4b3276
1de8dc3
bcce5a6
2522439
b190431
63cbd7b
a31a7fd
92c9fc0
a836608
95e0177
f04a16a
ebf242a
bf9169e
1e13309
6e43ce7
90ac35d
5d0102e
ab910ec
a2c63ff
76e4bd2
612dbe6
0e953eb
0bb311f
611881b
6c99a9a
6079793
bcd2074
23f4c1d
e88d3b6
4a26943
fa0342a
ebc3f14
03eed3e
1348cab
8d69a4e
4368ec0
6b8f290
68b298e
cc7cd18
6ed5fde
65c8c22
135d14b
330fac8
68fa045
601d741
6391a2b
029d22c
3a4b926
6895199
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
Signed-off-by: Daniel Calviño Sánchez <[email protected]>
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -56,4 +56,17 @@ public function getAvatar(string $user) : IAvatar; | |
| * @since 16.0.0 | ||
| */ | ||
| public function getGuestAvatar(string $name): IAvatar; | ||
|
|
||
| /** | ||
| * Returns an avatar instance of the given type. | ||
| * | ||
| * @param string $type the type of the avatar | ||
| * @param string $id the identifier for the avatar of the given type | ||
| * @return IAvatar | ||
| * @throws \InvalidArgumentException if the type is not known or the id is | ||
| * not valid | ||
| * @throws \Exception if getting the avatar failed | ||
|
||
| * @since 21.0.0 | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🙈 quick quick quick |
||
| */ | ||
| public function getGenericAvatar(string $type, string $id): IAvatar; | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.