Пример #1
0
 /**
  * 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;
 }
Пример #2
0
 /**
  * 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);
 }
Пример #3
0
 /**
  * UninstallCommand constructor.
  *
  * @param \Illuminate\Support\Composer $composer
  */
 public function __construct(Composer $composer)
 {
     parent::__construct();
     $this->composer = $composer;
 }