File tree Expand file tree Collapse file tree 5 files changed +2933
-856
lines changed Expand file tree Collapse file tree 5 files changed +2933
-856
lines changed Original file line number Diff line number Diff line change 1
1
<?php namespace App \Providers ;
2
2
3
3
use Illuminate \Support \ServiceProvider ;
4
- use App \Console \Commands \GpsCommand ;
5
4
6
5
class CommandServiceProvider extends ServiceProvider
7
6
{
@@ -13,13 +12,6 @@ class CommandServiceProvider extends ServiceProvider
13
12
*/
14
13
public function register ()
15
14
{
16
- $ this ->app ->singleton ('command.gps.command ' , function ()
17
- {
18
- return new GpsCommand ;
19
- });
20
-
21
- $ this ->commands (
22
- 'command.gps.command '
23
- );
15
+
24
16
}
25
17
}
Original file line number Diff line number Diff line change 2
2
3
3
require_once __DIR__ .'/../vendor/autoload.php ' ;
4
4
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 ();
10
8
11
9
/*
12
10
|--------------------------------------------------------------------------
98
96
|
99
97
*/
100
98
101
- $ app ->group (['namespace ' => 'App\Http\Controllers ' ], function ($ app ) {
99
+ $ app ->router ->group ([
100
+ 'namespace ' => 'App\Http\Controllers ' ,
101
+ ], function ($ router ) {
102
102
require __DIR__ .'/../routes/web.php ' ;
103
103
});
104
104
Original file line number Diff line number Diff line change 6
6
"type" : " project" ,
7
7
"require" : {
8
8
"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 " ,
11
11
"sunra/php-simple-html-dom-parser" : " 1.5.2" ,
12
12
"guzzlehttp/guzzle" :" 6.2.2"
13
13
},
You can’t perform that action at this time.
0 commit comments