__construct() public méthode

Available options are: * working_dir : specify where working copy is located (option --work-tree) * debug : (default: true) enable/disable minimize errors and reduce log level * logger : a logger to use for logging actions (Psr\Log\LoggerInterface) * environment_variables : define environment variables for every ran process
public __construct ( string $dir, array $options = [] )
$dir string path to git repository
$options array array of options values
Exemple #1
0
 public function __construct($dir, $options = [])
 {
     $options['command'] = $options['git_command'];
     $this->perlCommand = $options['perl_command'];
     $this->wikiDir = $options['wiki_dir'];
     unset($options['git_command'], $options['perl_command'], $options['wiki_dir']);
     parent::__construct($dir, $options);
 }
Exemple #2
0
 public function __construct($path, array $options = array())
 {
     parent::__construct($path, $options);
     $this->setName(basename($this->getPath()));
 }