Skip to content

Commit 1aa6d31

Browse files
authored
Merge pull request #6 from tuxonice/task/lumen-6-upgrade
[TASK] Upgrade to Lumen 6.3.3
2 parents be548ec + 9ba2648 commit 1aa6d31

File tree

5 files changed

+2933
-856
lines changed

5 files changed

+2933
-856
lines changed
Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php namespace App\Providers;
22

33
use Illuminate\Support\ServiceProvider;
4-
use App\Console\Commands\GpsCommand;
54

65
class CommandServiceProvider extends ServiceProvider
76
{
@@ -13,13 +12,6 @@ class CommandServiceProvider extends ServiceProvider
1312
*/
1413
public function register()
1514
{
16-
$this->app->singleton('command.gps.command', function()
17-
{
18-
return new GpsCommand;
19-
});
20-
21-
$this->commands(
22-
'command.gps.command'
23-
);
15+
2416
}
2517
}

bootstrap/app.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22

33
require_once __DIR__.'/../vendor/autoload.php';
44

5-
try {
6-
(new Dotenv\Dotenv(__DIR__.'/../'))->load();
7-
} catch (Dotenv\Exception\InvalidPathException $e) {
8-
//
9-
}
5+
(new Laravel\Lumen\Bootstrap\LoadEnvironmentVariables(
6+
dirname(__DIR__)
7+
))->bootstrap();
108

119
/*
1210
|--------------------------------------------------------------------------
@@ -98,7 +96,9 @@
9896
|
9997
*/
10098

101-
$app->group(['namespace' => 'App\Http\Controllers'], function ($app) {
99+
$app->router->group([
100+
'namespace' => 'App\Http\Controllers',
101+
], function ($router) {
102102
require __DIR__.'/../routes/web.php';
103103
});
104104

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"type": "project",
77
"require": {
88
"php": ">=5.6.4",
9-
"laravel/lumen-framework": "5.4.*",
10-
"vlucas/phpdotenv": "~2.2",
9+
"laravel/lumen-framework": "^6.0",
10+
"vlucas/phpdotenv": "^3.3",
1111
"sunra/php-simple-html-dom-parser": "1.5.2",
1212
"guzzlehttp/guzzle":"6.2.2"
1313
},

0 commit comments

Comments
 (0)