getTemplateNames() public method

Get template names
public getTemplateNames ( ) : array
return array
 /**
  * Construct
  *
  * @param string $name
  */
 public function __construct($name = null)
 {
     $this->initializer = $this->createInitializer();
     $this->availableTemplates = $this->initializer->getTemplateNames();
     parent::__construct($name);
 }
Ejemplo n.º 2
0
 /**
  * {@inheritDoc}
  */
 protected function configure()
 {
     $availableTemplates = implode(', ', $this->initializer->getTemplateNames());
     $this->setName('init')->setDescription('Initialize deployer system in your project.')->addArgument('template', InputArgument::REQUIRED, 'The template of you project. Available templates: ' . $availableTemplates)->addOption('directory', null, InputOption::VALUE_OPTIONAL, 'The directory for create "deploy.php" file.', getcwd())->addOption('filename', null, InputOption::VALUE_OPTIONAL, 'The file name. Default "deploy.php"', 'deploy.php');
 }