/** * Setup the process * * @return void * @author Dan Cox */ public function setup() { if (is_null($this->params->directory)) { throw new Exceptions\RequiredArgumentException('Directory'); } parent::setCWD($this->params->directory); parent::setPrefix('composer'); }
/** * Sets up the process and adds nessecary commands to the builder. * * @return void * @author Dan Cox */ public function setup() { // Change directory parent::setCWD($this->params->directory); // Enable output parent::enableOutput(); // Add the prefix parent::setPrefix('ls'); // Add the list command parent::setArguments($this->params->arguments); }
/** * Setup the process * * @return void * @author Dan Cox */ public function setup() { if (is_null($this->params->directory)) { throw new Exceptions\RequiredArgumentException('directory'); } parent::setCWD($this->params->directory); parent::disableOutput(); if ($this->params->verbose) { parent::enableOutput(); } }