Skip to content

Commit

Permalink
- latest laravel workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
dusterio committed Jul 19, 2019
1 parent 90d47a0 commit af2ee98
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 114 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ $app->routeMiddleware([
'auth' => App\Http\Middleware\Authenticate::class,
]);

// Finally register a service provider of the Lumen adapter
// Finally register two service providers - original one and Lumen adapter
$app->register(Laravel\Passport\PassportServiceProvider::class);
$app->register(Dusterio\LumenPassport\PassportServiceProvider::class);
```

Expand Down
7 changes: 0 additions & 7 deletions src/PassportServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use Dusterio\LumenPassport\Console\Commands\Purge;
use Illuminate\Support\ServiceProvider;
use Illuminate\Database\Connection;
use Symfony\Component\Debug\Exception\FatalThrowableError;

/**
* Class CustomQueueServiceProvider
Expand All @@ -20,9 +19,6 @@ class PassportServiceProvider extends ServiceProvider
*/
public function boot()
{
$laravel = new \Laravel\Passport\PassportServiceProvider($this->app);
$laravel->boot();

$this->app->singleton(Connection::class, function() {
return $this->app['db.connection'];
});
Expand All @@ -44,8 +40,5 @@ public function boot()
*/
public function register()
{
$app = new ProxyApplication($this->app);
$laravel = new \Laravel\Passport\PassportServiceProvider($app);
$laravel->register();
}
}
106 changes: 0 additions & 106 deletions src/ProxyApplication.php

This file was deleted.

0 comments on commit af2ee98

Please sign in to comment.