getCustomTemplate() публичный Метод

public getCustomTemplate ( $domain ) : null | string
Результат null | string
Пример #1
0
 public function decorateDefinition(ConsoleCommandEvent $event)
 {
     $command = $event->getCommand();
     if (!$command instanceof TemplateFeature) {
         return;
     }
     $names = $this->templateHelper->getNamesForDomain($command->getTemplateDomain());
     $command->addOption('template', 't', InputOption::VALUE_REQUIRED, 'Template to use. <info>One of: ' . implode('</info>, <info>', $names) . '</info>', $this->templateHelper->getCustomTemplate($command->getTemplateDomain()) ?: $command->getTemplateDefault());
 }