Skip to content

Commit

Permalink
Import the right interface for the modules
Browse files Browse the repository at this point in the history
fixes #570
  • Loading branch information
nWidart committed Sep 5, 2018
1 parent e50809d commit 088773f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modules/Workshop/Providers/WorkshopServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
use Modules\Workshop\Scaffold\Module\ModuleScaffold;
use Modules\Workshop\Scaffold\Theme\ThemeGeneratorFactory;
use Modules\Workshop\Scaffold\Theme\ThemeScaffold;
use Nwidart\Modules\Repository;
use Nwidart\Modules\Contracts\RepositoryInterface;

class WorkshopServiceProvider extends ServiceProvider
{
Expand Down Expand Up @@ -55,7 +55,7 @@ public function register()
});

app('router')->bind('module', function ($module) {
return app(Repository::class)->find($module);
return app(RepositoryInterface::class)->find($module);
});
app('router')->bind('theme', function ($theme) {
return app(ThemeManager::class)->find($theme);
Expand Down

0 comments on commit 088773f

Please sign in to comment.