2 namespace Robo\Task\Composer;
10 * $this->taskComposerConfig()->set('bin-dir', 'bin/')->run();
14 class Config extends Base
19 protected $action = 'config';
22 * Set a configuration value
25 public function set($key, $value)
33 * Operate on the global repository
36 public function useGlobal($useGlobal = true)
39 $this->option('global');
47 public function repository($id, $uri, $repoType = 'vcs')
49 $this->arg("repositories.$id");
50 $this->arg($repoType);
58 public function removeRepository($id)
60 $this->option('unset', "repositories.$id");
67 public function disableRepository($id)
69 $this->arg("repositories.$id");
77 public function enableRepository($id)
79 $this->arg("repositories.$id");
89 $command = $this->getCommand();
90 $this->printTaskInfo('Configuring composer.json: {command}', ['command' => $command]);
91 return $this->executeCommand($command);