public function content()
{
$stubContent = file_get_contents($this->stubFilePath());
$strSubstitutor = new StrSubstitutor(array('namespace' => $this->generator->getClassNamespace(), 'class' => $this->generator->getClassName()));
return $strSubstitutor->replace($stubContent);
}
public function templateContents() { $classStubPlaceholderReplacer = new ControllerClassStubPlaceholderReplacer($this); return $classStubPlaceholderReplacer->content(); }