Skip to content

Commit 56e072c

Browse files
committed
added fix for MigrationCreator non custom path
1 parent 8059efd commit 56e072c

File tree

2 files changed

+8
-43
lines changed

2 files changed

+8
-43
lines changed

.idea/workspace.xml

Lines changed: 2 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/MultiAuthCommandServiceProvider.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22

33
namespace iMokhles\MultiAuthCommand;
44

5+
use Illuminate\Database\Migrations\MigrationCreator;
6+
use Illuminate\Support\Composer;
57
use Illuminate\Support\ServiceProvider;
8+
use iMokhles\MultiAuthCommand\Command\MultiAuthListThemes;
9+
use iMokhles\MultiAuthCommand\Command\MultiAuthPrepare;
610

711
class MultiAuthCommandServiceProvider extends ServiceProvider
812
{
@@ -33,10 +37,10 @@ public function register()
3337
private function registerInstallCommand()
3438
{
3539
$this->app->singleton('command.imokhles.make.multi-auth', function ($app) {
36-
return $app['iMokhles\MultiAuthCommand\Command\MultiAuthPrepare'];
40+
return new MultiAuthPrepare(new MigrationCreator($app['files'], $app->basePath('Stubs')), new Composer($app['files']));
3741
});
3842
$this->app->singleton('command.imokhles.make.multi-auth.list-themes', function ($app) {
39-
return $app['iMokhles\MultiAuthCommand\Command\MultiAuthListThemes'];
43+
return new MultiAuthListThemes();
4044
});
4145
$this->commands([
4246
'MultiAuthPrepare' => 'command.imokhles.make.multi-auth',

0 commit comments

Comments
 (0)