Skip to content
This repository was archived by the owner on Aug 28, 2022. It is now read-only.

Commit 054c70e

Browse files
authored
Merge pull request #1 from shrink/upgrade/7.x
🆙 Upgrade Laravel to version 7.x
2 parents a7f138c + 8a30051 commit 054c70e

File tree

11 files changed

+869
-1006
lines changed

11 files changed

+869
-1006
lines changed

app/Console/Kernel.php

Lines changed: 0 additions & 11 deletions
This file was deleted.

app/Exceptions/Handler.php

Lines changed: 0 additions & 11 deletions
This file was deleted.

app/HelloWorld/ServiceProvider.php

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace App\HelloWorld;
6+
7+
use Illuminate\Http\JsonResponse;
8+
use Illuminate\Routing\Router;
9+
use Illuminate\Routing\RouteRegistrar;
10+
use Illuminate\Support\ServiceProvider as LaravelServiceProvider;
11+
12+
final class ServiceProvider extends LaravelServiceProvider
13+
{
14+
/**
15+
* Register simple Hello World component.
16+
*/
17+
public function boot(RouteRegistrar $registrar): void
18+
{
19+
$registrar->group(static function (Router $router): void {
20+
$router->get('/', static function () {
21+
return new JsonResponse(['greeting' => 'Hello, World!'], 200);
22+
});
23+
});
24+
}
25+
}

app/Http/Kernel.php

Lines changed: 0 additions & 11 deletions
This file was deleted.

app/Providers/HttpServiceProvider.php

Lines changed: 0 additions & 39 deletions
This file was deleted.

bootstrap/app.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@
3030

3131
$app->singleton(
3232
Illuminate\Contracts\Http\Kernel::class,
33-
App\Http\Kernel::class
33+
Illuminate\Foundation\Http\Kernel::class
3434
);
3535

3636
$app->singleton(
3737
Illuminate\Contracts\Console\Kernel::class,
38-
App\Console\Kernel::class
38+
Illuminate\Foundation\Console\Kernel::class
3939
);
4040

4141
$app->singleton(
4242
Illuminate\Contracts\Debug\ExceptionHandler::class,
43-
App\Exceptions\Handler::class
43+
Illuminate\Foundation\Exceptions\Handler::class
4444
);
4545

4646
/*

composer.json

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,14 @@
66
"require": {
77
"php": "^7.4",
88
"fideloper/proxy": "^4.0",
9-
"laravel/framework": "^6.0",
10-
"laravel/tinker": "^1.0"
9+
"laravel/framework": "^7.0",
10+
"laravel/tinker": "^2.0"
1111
},
1212
"require-dev": {
13-
"facade/ignition": "^1.4",
14-
"fzaninotto/faker": "^1.4",
15-
"mockery/mockery": "^1.0",
16-
"nunomaduro/collision": "^3.0",
17-
"nunomaduro/phpinsights": "^1.9",
18-
"phpunit/phpunit": "^8.0",
19-
"symfony/var-dumper": "^4.3"
13+
"facade/ignition": "^2.0",
14+
"nunomaduro/collision": "^4.1",
15+
"nunomaduro/phpinsights": "^1.14",
16+
"phpunit/phpunit": "^8.5|^9.0"
2017
},
2118
"config": {
2219
"optimize-autoloader": false,
@@ -66,7 +63,7 @@
6663
"vendor/bin/phpunit --colors=always"
6764
],
6865
"insights": [
69-
"@php artisan insights --ansi --no-interaction --min-quality=90 --min-complexity=90 --min-architecture=90 --min-style=100 --config-path=config/insights.php"
66+
"@php artisan insights --ansi --no-interaction --config-path=config/insights.php"
7067
]
7168
}
7269
}

0 commit comments

Comments
 (0)