Commit 7c0751ad authored by Nicolas Widart's avatar Nicolas Widart

Inject the new composer class

parent 2408eea6
......@@ -5,6 +5,7 @@ use Illuminate\Console\Command;
use Illuminate\Contracts\Foundation\Application;
use Illuminate\Filesystem\Filesystem;
use Illuminate\Support\Facades\Hash;
use Modules\Core\Services\Composer;
use Modules\User\Repositories\UserRepository;
class InstallCommand extends Command
......@@ -36,6 +37,10 @@ class InstallCommand extends Command
* @var Application
*/
private $app;
/**
* @var Composer
*/
private $composer;
/**
* Create a new command instance.
......@@ -43,13 +48,15 @@ class InstallCommand extends Command
* @param UserRepository $user
* @param Filesystem $finder
* @param Application $app
* @param Composer $composer
*/
public function __construct($user, Filesystem $finder, Application $app)
public function __construct($user, Filesystem $finder, Application $app, Composer $composer)
{
parent::__construct();
$this->user = $user;
$this->finder = $finder;
$this->app = $app;
$this->composer = $composer;
}
/**
......
......@@ -4,6 +4,7 @@ use Illuminate\Contracts\Foundation\Application;
use Illuminate\Routing\Router;
use Illuminate\Support\ServiceProvider;
use Modules\Core\Console\InstallCommand;
use Modules\Core\Services\Composer;
use Modules\Menu\Entities\Menuitem;
use Modules\Menu\Repositories\Eloquent\EloquentMenuItemRepository;
......@@ -89,7 +90,8 @@ class CoreServiceProvider extends ServiceProvider
return new InstallCommand(
$app['Modules\User\Repositories\UserRepository'],
$app['files'],
$app
$app,
new Composer($app['files'])
);
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment