Example #1
0
 /**
  * @param AbstractStep $step
  * @return Installer
  */
 protected function addStep(AbstractStep $step)
 {
     if (!$this->firstStep) {
         $this->firstStep = $step;
         $this->lastStep = $step;
     } else {
         $this->lastStep->chainNextStep($step);
         $this->lastStep = $step;
     }
     return $this;
 }
Example #2
0
 /**
  * @param AbstractStep $step
  * @return Installer
  */
 protected function addStep(AbstractStep $step)
 {
     if (!$this->firstStep) {
         $this->firstStep = $step;
         $this->lastStep = $step;
         $step->setPixie($this->pixie);
         $step->setView($this->view);
     } else {
         $this->lastStep->chainNextStep($step);
         $this->lastStep = $step;
     }
     return $this;
 }