Install guzzle 7.0 and upgrade unsplash version due to failed dependency

This commit is contained in:
Dale Davies
2022-07-25 12:53:02 +01:00
parent c13445afa9
commit 775ff681b1
3 changed files with 391 additions and 288 deletions

View File

@@ -16,13 +16,13 @@ namespace Jump;
class Unsplash {
public static function load_cache_unsplash_data($config) {
\Crew\Unsplash\HttpClient::init([
\Unsplash\HttpClient::init([
'utmSource' => 'jump_startpage',
'applicationId' => $config->get('unsplashapikey'),
]);
// Try to get a random image via the API.
try {
$photo = \Crew\Unsplash\Photo::random([
$photo = \Unsplash\Photo::random([
'collections' => $config->get('unsplashcollections', false),
]);
} catch (\Exception $e) {

View File

@@ -4,6 +4,12 @@
"Jump\\": "classes/"
}
},
"repositories": [
{
"type": "git",
"url": "git@github.com:unsplash/unsplash-php.git"
}
],
"require": {
"mustache/mustache": "~2.5",
"arthurhoaro/favicon": "~1.0",
@@ -11,6 +17,7 @@
"nette/routing": "^3.0.2",
"phlak/config": "^7.0",
"nette/http": "^3.1",
"unsplash/unsplash": "^2.5"
"guzzlehttp/guzzle": "^7.0",
"unsplash/unsplash": "3.2.1"
}
}

666
jumpapp/composer.lock generated

File diff suppressed because it is too large Load Diff