From ebb9afb77b49f193eb2060706473b8d4b93f66d7 Mon Sep 17 00:00:00 2001 From: Casper Lai Date: Tue, 22 Dec 2015 23:40:49 +0800 Subject: [PATCH] Compatible with laravel 5.1 and 5.2 --- src/Commands/MigrationMakeCommand.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Commands/MigrationMakeCommand.php b/src/Commands/MigrationMakeCommand.php index 8caa421..b10db6a 100644 --- a/src/Commands/MigrationMakeCommand.php +++ b/src/Commands/MigrationMakeCommand.php @@ -5,7 +5,6 @@ use Illuminate\Console\AppNamespaceDetectorTrait; use Illuminate\Console\Command; use Illuminate\Filesystem\Filesystem; -use Illuminate\Foundation\Composer; use Laracasts\Generators\Migrations\NameParser; use Laracasts\Generators\Migrations\SchemaParser; use Laracasts\Generators\Migrations\SyntaxBuilder; @@ -55,12 +54,12 @@ class MigrationMakeCommand extends Command * @param Filesystem $files * @param Composer $composer */ - public function __construct(Filesystem $files, Composer $composer) + public function __construct(Filesystem $files) { parent::__construct(); $this->files = $files; - $this->composer = $composer; + $this->composer = app()['composer']; } /**