/** * InstallCommand constructor. * * @param \Illuminate\Filesystem\Filesystem $files * @param \Illuminate\Contracts\Config\Repository $config */ public function __construct(Filesystem $files, Repository $config) { parent::__construct(); $this->config = $config; $this->data = new Collection(); $this->filesystem = $files; }
/** * Command constructor. */ public function __construct() { parent::__construct(); $this->file = new JsonFile($this->container->basePath() . DIRECTORY_SEPARATOR . 'composer.json'); $this->files = $this->container->make('files'); $this->backup = $this->file->read(); $this->json = new JsonConfigSource($this->file); }
/** * UninstallCommand constructor. * * @param \Illuminate\Support\Composer $composer */ public function __construct(Composer $composer) { parent::__construct(); $this->composer = $composer; }