8 Commits

Author SHA1 Message Date
Sara Arjona
e01a61a7b8
Merge branch 'MDL-80643_upgrade-http-client' of https://github.com/ziegenberg/moodle 2024-07-01 13:36:28 +02:00
Daniel Ziegenberg
6222b1307e
MDL-80643 libraries: Update http-client to 1.0.3
Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
2024-06-14 23:17:03 +02:00
Daniel Ziegenberg
2c4fb82def
MDL-80642 libaries: Update http-message to 2.0.0
Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
2024-06-14 23:16:23 +02:00
Daniel Ziegenberg
53efc4c73c
MDL-80644 libraries: Update http-factory to 1.1.0
Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
2024-05-17 16:08:10 +02:00
Andrew Nicols
298c13ac3b
MDL-80838 core: Add PSR-20/Clock support
This commit adds the PSR-20 ClockInterface to core, with a
moodle-specific extension to the Interface at `\core\clock`, and a
standard clock at `\core\system_clock`.

Further clocks are provided as `\incrementing_clock` and `\frozen_clock`
which are available to unit tests using:

- `$this->mock_clock_with_incrementing(?int $starttime = null);`
- `$this->mock_clock_with_frozen(?int $time = null);`

For the incrementing clock, every call to fetch the time will bump the
current time by one second.

For the frozen clock the time will not change, but can be modified with:
- `$clock->set_to(int $time);`; and
- `$clock->bump(int $seconds = 1);`
2024-04-02 10:24:54 +08:00
Andrew Nicols
12dcde3fae
MDL-80072 core: Add PSR-11 interfaces 2024-02-09 15:03:57 +08:00
Petr Skoda
99a7a7c782 MDL-74954 core: add Hooks based on PSR-14 2023-05-20 11:03:46 +02:00
Andrew Nicols
7b150add44 MDL-76135 core: Import the Guzzle library
This commit will import the Guzzle library in
core. The imported libraries will be used in
the next commits to create an api for the http
client to be used in relevant locations.

Co-Authored-By: Andrew Nicols <andrew@nicols.co.uk>
Co-Authored-By: Safat Shahin <safat.shahin@moodle.com>
2023-01-30 13:05:27 +11:00