9 |
10 | Permission is hereby granted, free of charge, to any person obtaining a copy
11 | of this software and associated documentation files (the "Software"), to deal
12 | in the Software without restriction, including without limitation the rights
13 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the Software is
15 | furnished to do so, subject to the following conditions:
16 |
17 | The above copyright notice and this permission notice shall be included in
18 | all copies or substantial portions of the Software.
19 |
20 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
26 | THE SOFTWARE.
27 |
--------------------------------------------------------------------------------
/vendor/guzzlehttp/psr7/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "guzzlehttp/psr7",
3 | "description": "PSR-7 message implementation that also provides common utility methods",
4 | "keywords": [
5 | "request",
6 | "response",
7 | "message",
8 | "stream",
9 | "http",
10 | "uri",
11 | "url",
12 | "psr-7"
13 | ],
14 | "license": "MIT",
15 | "authors": [
16 | {
17 | "name": "Graham Campbell",
18 | "email": "hello@gjcampbell.co.uk",
19 | "homepage": "https://github.com/GrahamCampbell"
20 | },
21 | {
22 | "name": "Michael Dowling",
23 | "email": "mtdowling@gmail.com",
24 | "homepage": "https://github.com/mtdowling"
25 | },
26 | {
27 | "name": "George Mponos",
28 | "email": "gmponos@gmail.com",
29 | "homepage": "https://github.com/gmponos"
30 | },
31 | {
32 | "name": "Tobias Nyholm",
33 | "email": "tobias.nyholm@gmail.com",
34 | "homepage": "https://github.com/Nyholm"
35 | },
36 | {
37 | "name": "Márk Sági-Kazár",
38 | "email": "mark.sagikazar@gmail.com",
39 | "homepage": "https://github.com/sagikazarmark"
40 | },
41 | {
42 | "name": "Tobias Schultze",
43 | "email": "webmaster@tubo-world.de",
44 | "homepage": "https://github.com/Tobion"
45 | },
46 | {
47 | "name": "Márk Sági-Kazár",
48 | "email": "mark.sagikazar@gmail.com",
49 | "homepage": "https://sagikazarmark.hu"
50 | }
51 | ],
52 | "require": {
53 | "php": "^7.2.5 || ^8.0",
54 | "psr/http-factory": "^1.0",
55 | "psr/http-message": "^1.1 || ^2.0",
56 | "ralouphie/getallheaders": "^3.0"
57 | },
58 | "provide": {
59 | "psr/http-factory-implementation": "1.0",
60 | "psr/http-message-implementation": "1.0"
61 | },
62 | "require-dev": {
63 | "bamarni/composer-bin-plugin": "^1.8.1",
64 | "http-interop/http-factory-tests": "^0.9",
65 | "phpunit/phpunit": "^8.5.29 || ^9.5.23"
66 | },
67 | "suggest": {
68 | "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses"
69 | },
70 | "autoload": {
71 | "psr-4": {
72 | "GuzzleHttp\\Psr7\\": "src/"
73 | }
74 | },
75 | "autoload-dev": {
76 | "psr-4": {
77 | "GuzzleHttp\\Tests\\Psr7\\": "tests/"
78 | }
79 | },
80 | "extra": {
81 | "bamarni-bin": {
82 | "bin-links": true,
83 | "forward-command": false
84 | }
85 | },
86 | "config": {
87 | "allow-plugins": {
88 | "bamarni/composer-bin-plugin": true
89 | },
90 | "preferred-install": "dist",
91 | "sort-packages": true
92 | }
93 | }
94 |
--------------------------------------------------------------------------------
/vendor/guzzlehttp/psr7/src/DroppingStream.php:
--------------------------------------------------------------------------------
1 | stream = $stream;
30 | $this->maxLength = $maxLength;
31 | }
32 |
33 | public function write($string): int
34 | {
35 | $diff = $this->maxLength - $this->stream->getSize();
36 |
37 | // Begin returning 0 when the underlying stream is too large.
38 | if ($diff <= 0) {
39 | return 0;
40 | }
41 |
42 | // Write the stream or a subset of the stream if needed.
43 | if (strlen($string) < $diff) {
44 | return $this->stream->write($string);
45 | }
46 |
47 | return $this->stream->write(substr($string, 0, $diff));
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/vendor/guzzlehttp/psr7/src/Exception/MalformedUriException.php:
--------------------------------------------------------------------------------
1 | 15 + 32]);
35 | $this->stream = $stream->isSeekable() ? new Stream($resource) : new NoSeekStream(new Stream($resource));
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/vendor/guzzlehttp/psr7/src/LazyOpenStream.php:
--------------------------------------------------------------------------------
1 | filename = $filename;
35 | $this->mode = $mode;
36 |
37 | // unsetting the property forces the first access to go through
38 | // __get().
39 | unset($this->stream);
40 | }
41 |
42 | /**
43 | * Creates the underlying stream lazily when required.
44 | */
45 | protected function createStream(): StreamInterface
46 | {
47 | return Utils::streamFor(Utils::tryFopen($this->filename, $this->mode));
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/vendor/guzzlehttp/psr7/src/NoSeekStream.php:
--------------------------------------------------------------------------------
1 | @,;:\\\"/[\]?={}\x01-\x20\x7F]++):[ \t]*+((?:[ \t]*+[\x21-\x7E\x80-\xFF]++)*+)[ \t]*+\r?\n)m";
22 | public const HEADER_FOLD_REGEX = "(\r?\n[ \t]++)";
23 | }
24 |
--------------------------------------------------------------------------------
/vendor/guzzlehttp/psr7/src/UriComparator.php:
--------------------------------------------------------------------------------
1 | getHost(), $modified->getHost()) !== 0) {
23 | return true;
24 | }
25 |
26 | if ($original->getScheme() !== $modified->getScheme()) {
27 | return true;
28 | }
29 |
30 | if (self::computePort($original) !== self::computePort($modified)) {
31 | return true;
32 | }
33 |
34 | return false;
35 | }
36 |
37 | private static function computePort(UriInterface $uri): int
38 | {
39 | $port = $uri->getPort();
40 |
41 | if (null !== $port) {
42 | return $port;
43 | }
44 |
45 | return 'https' === $uri->getScheme() ? 443 : 80;
46 | }
47 |
48 | private function __construct()
49 | {
50 | // cannot be instantiated
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/vendor/psr/http-client/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # Changelog
2 |
3 | All notable changes to this project will be documented in this file, in reverse chronological order by release.
4 |
5 | ## 1.0.3
6 |
7 | Add `source` link in composer.json. No code changes.
8 |
9 | ## 1.0.2
10 |
11 | Allow PSR-7 (psr/http-message) 2.0. No code changes.
12 |
13 | ## 1.0.1
14 |
15 | Allow installation with PHP 8. No code changes.
16 |
17 | ## 1.0.0
18 |
19 | First stable release. No changes since 0.3.0.
20 |
21 | ## 0.3.0
22 |
23 | Added Interface suffix on exceptions
24 |
25 | ## 0.2.0
26 |
27 | All exceptions are in `Psr\Http\Client` namespace
28 |
29 | ## 0.1.0
30 |
31 | First release
32 |
--------------------------------------------------------------------------------
/vendor/psr/http-client/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2017 PHP Framework Interoperability Group
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is
8 | furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in
11 | all copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
20 |
--------------------------------------------------------------------------------
/vendor/psr/http-client/README.md:
--------------------------------------------------------------------------------
1 | HTTP Client
2 | ===========
3 |
4 | This repository holds all the common code related to [PSR-18 (HTTP Client)][psr-url].
5 |
6 | Note that this is not a HTTP Client implementation of its own. It is merely abstractions that describe the components of a HTTP Client.
7 |
8 | The installable [package][package-url] and [implementations][implementation-url] are listed on Packagist.
9 |
10 | [psr-url]: https://www.php-fig.org/psr/psr-18
11 | [package-url]: https://packagist.org/packages/psr/http-client
12 | [implementation-url]: https://packagist.org/providers/psr/http-client-implementation
13 |
--------------------------------------------------------------------------------
/vendor/psr/http-client/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "psr/http-client",
3 | "description": "Common interface for HTTP clients",
4 | "keywords": ["psr", "psr-18", "http", "http-client"],
5 | "homepage": "https://github.com/php-fig/http-client",
6 | "license": "MIT",
7 | "authors": [
8 | {
9 | "name": "PHP-FIG",
10 | "homepage": "https://www.php-fig.org/"
11 | }
12 | ],
13 | "support": {
14 | "source": "https://github.com/php-fig/http-client"
15 | },
16 | "require": {
17 | "php": "^7.0 || ^8.0",
18 | "psr/http-message": "^1.0 || ^2.0"
19 | },
20 | "autoload": {
21 | "psr-4": {
22 | "Psr\\Http\\Client\\": "src/"
23 | }
24 | },
25 | "extra": {
26 | "branch-alias": {
27 | "dev-master": "1.0.x-dev"
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/vendor/psr/http-client/src/ClientExceptionInterface.php:
--------------------------------------------------------------------------------
1 | =7.0.0",
23 | "psr/http-message": "^1.0 || ^2.0"
24 | },
25 | "autoload": {
26 | "psr-4": {
27 | "Psr\\Http\\Message\\": "src/"
28 | }
29 | },
30 | "extra": {
31 | "branch-alias": {
32 | "dev-master": "1.0.x-dev"
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/vendor/psr/http-factory/src/RequestFactoryInterface.php:
--------------------------------------------------------------------------------
1 | = 5.3.
5 |
6 | [](https://travis-ci.org/ralouphie/getallheaders)
7 | [](https://coveralls.io/r/ralouphie/getallheaders?branch=master)
8 | [](https://packagist.org/packages/ralouphie/getallheaders)
9 | [](https://packagist.org/packages/ralouphie/getallheaders)
10 | [](https://packagist.org/packages/ralouphie/getallheaders)
11 |
12 |
13 | This is a simple polyfill for [`getallheaders()`](http://www.php.net/manual/en/function.getallheaders.php).
14 |
15 | ## Install
16 |
17 | For PHP version **`>= 5.6`**:
18 |
19 | ```
20 | composer require ralouphie/getallheaders
21 | ```
22 |
23 | For PHP version **`< 5.6`**:
24 |
25 | ```
26 | composer require ralouphie/getallheaders "^2"
27 | ```
28 |
--------------------------------------------------------------------------------
/vendor/ralouphie/getallheaders/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "ralouphie/getallheaders",
3 | "description": "A polyfill for getallheaders.",
4 | "license": "MIT",
5 | "authors": [
6 | {
7 | "name": "Ralph Khattar",
8 | "email": "ralph.khattar@gmail.com"
9 | }
10 | ],
11 | "require": {
12 | "php": ">=5.6"
13 | },
14 | "require-dev": {
15 | "phpunit/phpunit": "^5 || ^6.5",
16 | "php-coveralls/php-coveralls": "^2.1"
17 | },
18 | "autoload": {
19 | "files": ["src/getallheaders.php"]
20 | },
21 | "autoload-dev": {
22 | "psr-4": {
23 | "getallheaders\\Tests\\": "tests/"
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/vendor/ralouphie/getallheaders/src/getallheaders.php:
--------------------------------------------------------------------------------
1 | 'Content-Type',
16 | 'CONTENT_LENGTH' => 'Content-Length',
17 | 'CONTENT_MD5' => 'Content-Md5',
18 | );
19 |
20 | foreach ($_SERVER as $key => $value) {
21 | if (substr($key, 0, 5) === 'HTTP_') {
22 | $key = substr($key, 5);
23 | if (!isset($copy_server[$key]) || !isset($_SERVER[$key])) {
24 | $key = str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', $key))));
25 | $headers[$key] = $value;
26 | }
27 | } elseif (isset($copy_server[$key])) {
28 | $headers[$copy_server[$key]] = $value;
29 | }
30 | }
31 |
32 | if (!isset($headers['Authorization'])) {
33 | if (isset($_SERVER['REDIRECT_HTTP_AUTHORIZATION'])) {
34 | $headers['Authorization'] = $_SERVER['REDIRECT_HTTP_AUTHORIZATION'];
35 | } elseif (isset($_SERVER['PHP_AUTH_USER'])) {
36 | $basic_pass = isset($_SERVER['PHP_AUTH_PW']) ? $_SERVER['PHP_AUTH_PW'] : '';
37 | $headers['Authorization'] = 'Basic ' . base64_encode($_SERVER['PHP_AUTH_USER'] . ':' . $basic_pass);
38 | } elseif (isset($_SERVER['PHP_AUTH_DIGEST'])) {
39 | $headers['Authorization'] = $_SERVER['PHP_AUTH_DIGEST'];
40 | }
41 | }
42 |
43 | return $headers;
44 | }
45 |
46 | }
47 |
--------------------------------------------------------------------------------
/vendor/symfony/deprecation-contracts/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | CHANGELOG
2 | =========
3 |
4 | The changelog is maintained for all Symfony contracts at the following URL:
5 | https://github.com/symfony/contracts/blob/main/CHANGELOG.md
6 |
--------------------------------------------------------------------------------
/vendor/symfony/deprecation-contracts/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2020-present Fabien Potencier
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is furnished
8 | to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in all
11 | copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
20 |
--------------------------------------------------------------------------------
/vendor/symfony/deprecation-contracts/README.md:
--------------------------------------------------------------------------------
1 | Symfony Deprecation Contracts
2 | =============================
3 |
4 | A generic function and convention to trigger deprecation notices.
5 |
6 | This package provides a single global function named `trigger_deprecation()` that triggers silenced deprecation notices.
7 |
8 | By using a custom PHP error handler such as the one provided by the Symfony ErrorHandler component,
9 | the triggered deprecations can be caught and logged for later discovery, both on dev and prod environments.
10 |
11 | The function requires at least 3 arguments:
12 | - the name of the Composer package that is triggering the deprecation
13 | - the version of the package that introduced the deprecation
14 | - the message of the deprecation
15 | - more arguments can be provided: they will be inserted in the message using `printf()` formatting
16 |
17 | Example:
18 | ```php
19 | trigger_deprecation('symfony/blockchain', '8.9', 'Using "%s" is deprecated, use "%s" instead.', 'bitcoin', 'fabcoin');
20 | ```
21 |
22 | This will generate the following message:
23 | `Since symfony/blockchain 8.9: Using "bitcoin" is deprecated, use "fabcoin" instead.`
24 |
25 | While not recommended, the deprecation notices can be completely ignored by declaring an empty
26 | `function trigger_deprecation() {}` in your application.
27 |
--------------------------------------------------------------------------------
/vendor/symfony/deprecation-contracts/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "symfony/deprecation-contracts",
3 | "type": "library",
4 | "description": "A generic function and convention to trigger deprecation notices",
5 | "homepage": "https://symfony.com",
6 | "license": "MIT",
7 | "authors": [
8 | {
9 | "name": "Nicolas Grekas",
10 | "email": "p@tchwork.com"
11 | },
12 | {
13 | "name": "Symfony Community",
14 | "homepage": "https://symfony.com/contributors"
15 | }
16 | ],
17 | "require": {
18 | "php": ">=8.1"
19 | },
20 | "autoload": {
21 | "files": [
22 | "function.php"
23 | ]
24 | },
25 | "minimum-stability": "dev",
26 | "extra": {
27 | "branch-alias": {
28 | "dev-main": "3.4-dev"
29 | },
30 | "thanks": {
31 | "name": "symfony/contracts",
32 | "url": "https://github.com/symfony/contracts"
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/vendor/symfony/deprecation-contracts/function.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | if (!function_exists('trigger_deprecation')) {
13 | /**
14 | * Triggers a silenced deprecation notice.
15 | *
16 | * @param string $package The name of the Composer package that is triggering the deprecation
17 | * @param string $version The version of the package that introduced the deprecation
18 | * @param string $message The message of the deprecation
19 | * @param mixed ...$args Values to insert in the message using printf() formatting
20 | *
21 | * @author Nicolas Grekas
22 | */
23 | function trigger_deprecation(string $package, string $version, string $message, mixed ...$args): void
24 | {
25 | @trigger_error(($package || $version ? "Since $package $version: " : '').($args ? vsprintf($message, $args) : $message), \E_USER_DEPRECATED);
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/version.php:
--------------------------------------------------------------------------------
1 | .
16 |
17 | /**
18 | * Plugin version and other meta-data are defined here.
19 | *
20 | * @package tool_opencast
21 | * @copyright 2024 Thomas Niedermaier
22 | * @copyright 2018 Tobias Reischmann
23 | * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
24 | */
25 |
26 | defined('MOODLE_INTERNAL') || die();
27 |
28 | $plugin->component = 'tool_opencast';
29 | $plugin->release = 'v4.5-r4';
30 | $plugin->version = 2024111103;
31 | $plugin->requires = 2024100700; // Requires Moodle 4.5+.
32 | $plugin->supported = [405, 405];
33 | $plugin->maturity = MATURITY_STABLE;
34 |
--------------------------------------------------------------------------------