Inheritance: implements ApiGen\Contracts\Templating\TemplateFactory\TemplateFactoryInterface
 public function generate()
 {
     $annotations = $this->configuration->getOption('annotationGroups');
     foreach ($annotations as $annotation) {
         $template = $this->templateFactory->createNamedForElement(TemplateFactory::ELEMENT_ANNOTATION_GROUP, $annotation);
         $template = $this->setElementsWithAnnotationToTemplate($template, $annotation);
         $template->save();
     }
 }
 /**
  * {@inheritdoc}
  */
 public function generate()
 {
     foreach ($this->elementStorage->getNamespaces() as $name => $namespace) {
         $template = $this->templateFactory->createNamedForElement(TemplateFactory::ELEMENT_NAMESPACE, $name);
         $template = $this->namespaceAndPackageLoader->loadTemplateWithNamespace($template, $name, $namespace);
         $template->save();
         $this->eventDispatcher->dispatch(new GenerateProgressEvent(GeneratorEvents::ON_GENERATE_PROGRESS));
     }
 }
 public function generate()
 {
     foreach ($this->elementStorage->getNamespaces() as $name => $namespace) {
         $template = $this->templateFactory->createNamedForElement(TemplateFactory::ELEMENT_NAMESPACE, $name);
         $template = $this->namespaceAndPackageLoader->loadTemplateWithNamespace($template, $name, $namespace);
         $template->save();
         $this->onGenerateProgress();
     }
 }
 public function generate()
 {
     foreach ($this->elementStorage->getFunctions() as $name => $reflectionFunction) {
         $template = $this->templateFactory->createForReflection($reflectionFunction);
         $template = $this->loadTemplateWithParameters($template, $reflectionFunction);
         $template->save();
         $this->onGenerateProgress();
     }
 }
 public function generate()
 {
     $template = $this->templateFactory->createForType(TCO::TREE);
     $classes = $this->parserResult->getClasses();
     foreach ($classes as $className => $reflection) {
         if ($this->canBeProcessed($reflection)) {
             $this->addToTreeByReflection($reflection);
         }
     }
     $this->sortTreeStorageElements();
     $template->setParameters(['classTree' => new Tree($this->treeStorage[Elements::CLASSES], $classes), 'interfaceTree' => new Tree($this->treeStorage[Elements::INTERFACES], $classes), 'traitTree' => new Tree($this->treeStorage[Elements::TRAITS], $classes), 'exceptionTree' => new Tree($this->treeStorage[Elements::EXCEPTIONS], $classes)]);
     $template->save();
 }
 private function generateForElement(ElementReflectionInterface $element)
 {
     $template = $this->templateFactory->createNamedForElement('source', $element);
     $template = $this->namespaceAndPackageLoader->loadTemplateWithElementNamespaceOrPackage($template, $element);
     $template->setParameters(['fileName' => $this->relativePathResolver->getRelativePath($element->getFileName()), 'source' => $this->getHighlightedCodeFromElement($element)]);
     $template->save();
 }
 /**
  * {@inheritdoc}
  */
 public function generate()
 {
     $this->templateFactory->createForType('combined')->save();
 }
 public function generate()
 {
     $this->templateFactory->createForType(TCO::E404)->save();
 }
 /**
  * {@inheritdoc}
  */
 public function generate()
 {
     $this->templateFactory->createForType('opensearch')->save();
 }
 public function generate()
 {
     $this->templateFactory->createForType(TCO::OPENSEARCH)->save();
 }
 private function generateForElement(ReflectionElement $element)
 {
     $template = $this->templateFactory->createNamedForElement(TCO::SOURCE, $element);
     $template->setParameters(['fileName' => $this->relativePathResolver->getRelativePath($element->getFileName()), 'source' => $this->getHighlightedCodeFromElement($element)]);
     $template->save();
 }