Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions app/Providers/CommandServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php namespace App\Providers;

use Illuminate\Support\ServiceProvider;
use App\Console\Commands\GpsCommand;

class CommandServiceProvider extends ServiceProvider
{
Expand All @@ -13,13 +12,6 @@ class CommandServiceProvider extends ServiceProvider
*/
public function register()
{
$this->app->singleton('command.gps.command', function()
{
return new GpsCommand;
});

$this->commands(
'command.gps.command'
);

}
}
12 changes: 6 additions & 6 deletions bootstrap/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@

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

try {
(new Dotenv\Dotenv(__DIR__.'/../'))->load();
} catch (Dotenv\Exception\InvalidPathException $e) {
//
}
(new Laravel\Lumen\Bootstrap\LoadEnvironmentVariables(
dirname(__DIR__)
))->bootstrap();

/*
|--------------------------------------------------------------------------
Expand Down Expand Up @@ -98,7 +96,9 @@
|
*/

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

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"type": "project",
"require": {
"php": ">=5.6.4",
"laravel/lumen-framework": "5.4.*",
"vlucas/phpdotenv": "~2.2",
"laravel/lumen-framework": "^6.0",
"vlucas/phpdotenv": "^3.3",
"sunra/php-simple-html-dom-parser": "1.5.2",
"guzzlehttp/guzzle":"6.2.2"
},
Expand Down
Loading