Example #1
0
 public function __construct(RepositoryManager $manager, Config $config, VersionParser $parser = null, ProcessExecutor $process = null)
 {
     $this->manager = $manager;
     $this->config = $config;
     $this->process = $process ?: new ProcessExecutor();
     parent::__construct($parser);
 }
Example #2
0
 public function __construct(RepositoryManager $manager, Config $config, VersionParser $parser = null, VersionGuesser $versionGuesser = null)
 {
     parent::__construct($parser);
     $this->manager = $manager;
     $this->config = $config;
     $this->versionGuesser = $versionGuesser ?: new VersionGuesser($config, new ProcessExecutor(), $this->versionParser);
 }
Example #3
0
 public function __construct(RepositoryManager $manager, VersionParser $parser = null)
 {
     $this->manager = $manager;
     parent::__construct($parser);
 }