1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
<?php
// Generated by scripts/plugin-stub-generator; do not edit by hand.
// Guard for Composer\Util\GitHub.
// The Rust side owns this class and the worker has no proxy for it, so this
// declaration shadows the real one: the constants and the hierarchy stay, while
// constructing it or calling anything on it raises an explicit error.
namespace Composer\Util;
use Composer\IO\IOInterface;
use Composer\Config;
class GitHub
{
public const GITHUB_TOKEN_REGEX = '{^([a-f0-9]{12,}|gh[a-z]_[a-zA-Z0-9_]+|github_pat_[a-zA-Z0-9_]+)$}';
public function __construct(IOInterface $io, Config $config, ?ProcessExecutor $process = null, ?HttpDownloader $httpDownloader = null)
{
\ShirabeUnsupportedClass::fail(self::class, '__construct');
}
public function authorizeOAuth(string $originUrl): bool
{
\ShirabeUnsupportedClass::fail(self::class, 'authorizeOAuth');
}
public function authorizeOAuthInteractively(string $originUrl, ?string $message = null): bool
{
\ShirabeUnsupportedClass::fail(self::class, 'authorizeOAuthInteractively');
}
public function getRateLimit(array $headers): array
{
\ShirabeUnsupportedClass::fail(self::class, 'getRateLimit');
}
public function getSsoUrl(array $headers): ?string
{
\ShirabeUnsupportedClass::fail(self::class, 'getSsoUrl');
}
public function isRateLimited(array $headers): bool
{
\ShirabeUnsupportedClass::fail(self::class, 'isRateLimited');
}
public function requiresSso(array $headers): bool
{
\ShirabeUnsupportedClass::fail(self::class, 'requiresSso');
}
}
|