Skip to content

Commit

Permalink
Clean service providers
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge Y. C. Rodriguez authored and coquer committed Jul 2, 2019
1 parent 6ad6db4 commit 27528ed
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
4 changes: 0 additions & 4 deletions src/Requests/Provider/RequestServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,4 @@ public function boot()
});
}
}

public function register()
{
}
}
11 changes: 1 addition & 10 deletions src/Router/Provider/RouterServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Napp\Core\Api\Router\Provider;

use Illuminate\Support\ServiceProvider as BaseProvider;
use Napp\Core\Api\Router\Router;

/**
* Class RouterServiceProvider.
Expand All @@ -12,14 +11,6 @@ class RouterServiceProvider extends BaseProvider
{
public function register()
{
}

public function boot()
{
$this->app->singleton('internalrouter', function () {
$app = app();

return new Router($app, $app['request'], $app['router']);
});
$this->app->singleton('internalrouter');
}
}

0 comments on commit 27528ed

Please sign in to comment.