Upgrade to Lumen 8

This commit is contained in:
Irfan 2021-07-17 23:05:59 +05:00
parent ef8caea5bf
commit b23ac399bf
3 changed files with 980 additions and 873 deletions

View File

@ -104,14 +104,23 @@ $app->configure('controller');
$app->register(\SwaggerLume\ServiceProvider::class);
$app->register(Flipbox\LumenGenerator\LumenGeneratorServiceProvider::class);
$app->register(\App\Providers\SourceHeartbeatProvider::class);
$app->register(Illuminate\Database\Eloquent\LegacyFactoryServiceProvider::class);
$guzzleClient = new \GuzzleHttp\Client([
'timeout' => env('SOURCE_TIMEOUT', 5),
'connect_timeout' => env('SOURCE_CONNECT_TIMEOUT', 5)
]);
// Guzzle removed as of lumen 8.x
//$guzzleClient = new \GuzzleHttp\Client([
// 'timeout' => env('SOURCE_TIMEOUT', 5),
// 'connect_timeout' => env('SOURCE_CONNECT_TIMEOUT', 5)
//]);
//$app->instance('GuzzleClient', $guzzleClient);
$app->instance('GuzzleClient', $guzzleClient);
$jikan = new \Jikan\MyAnimeList\MalClient(app('GuzzleClient'));
$httpClient = \Symfony\Component\HttpClient\HttpClient::create(
[
'timeout' => env('SOURCE_TIMEOUT', 1)
]
);
$app->instance('HttpClient', $httpClient);
$jikan = new \Jikan\MyAnimeList\MalClient(app('HttpClient'));
$app->instance('JikanParser', $jikan);
$app->instance('SerializerV4', SerializerFactory::createV4());

View File

@ -9,22 +9,22 @@
"ext-json": "*",
"ext-mongodb": "*",
"danielmewes/php-rql": "dev-master",
"darkaonline/swagger-lume": "7",
"darkaonline/swagger-lume": "8.*",
"divineomega/cachetphp": "^0.2.0",
"fabpot/goutte": "3.2.3",
"flipbox/lumen-generator": "^6",
"illuminate/redis": "^7",
"jenssegers/mongodb": "^4.0",
"fabpot/goutte": "^4.0",
"flipbox/lumen-generator": "^8",
"illuminate/redis": "^8",
"jenssegers/mongodb": "3.8.4",
"jikan-me/jikan": "3.0.0.x-dev",
"jms/serializer": "^1.13",
"laravel/lumen-framework": "^7.0",
"laravel/legacy-factories": "^1.1",
"laravel/lumen-framework": "^8.0",
"league/flysystem": "^1.0",
"ocramius/package-versions": "^1.4",
"predis/predis": "^1.1",
"soatok/patreon": "^0.6.0",
"symfony/yaml": "^4.1",
"vlucas/phpdotenv": "^4",
"voku/anti-xss": "^4.0",
"vlucas/phpdotenv": "^5",
"zircote/swagger-php": "3.*"
},
"require-dev": {

1816
composer.lock generated

File diff suppressed because it is too large Load Diff