mirror of
https://github.com/daledavies/jump.git
synced 2026-02-24 23:30:46 +01:00
Install guzzle 7.0 and upgrade unsplash version due to failed dependency
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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
666
jumpapp/composer.lock
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user