public function appendAction(ActionGenerator $actionGenerator = null) { if ($actionGenerator) { if ($this->isActionExists($actionGenerator->getActionName())) { return false; } $actionAppender = new ActionAppender($actionGenerator); return $actionAppender->toController($this)->append(); } return false; }
public function content() { $stubContent = file_get_contents($this->stubFilePath()); $strSubstitutor = new StrSubstitutor(array('action' => $this->actionGenerator->getActionName())); return $strSubstitutor->replace($stubContent); }