Exemplo n.º 1
0
 private function initView(InputInterface $input, ConfigBag $configBag)
 {
     $configBag->setArray('twigVars', array('vendorNamespace' => $configBag->getString('vendorNamespace'), 'moduleName' => $configBag->getString('moduleName'), 'createBlocks' => $configBag->getBool('shouldAddBlocks'), 'createModels' => $configBag->getBool('shouldAddModels'), 'createHelpers' => $configBag->getBool('shouldAddHelpers'), 'createSetup' => $configBag->getBool('shouldAddSetup'), 'authorName' => $input->getOption('author-name'), 'authorEmail' => $input->getOption('author-email'), 'description' => $input->getOption('description')));
 }
Exemplo n.º 2
0
 /**
  * @param ConfigBag $configBag
  */
 private function initConfigBagDefaultValues($configBag)
 {
     $configBag->setBool('shouldAddBlocks', false);
     $configBag->setBool('shouldAddHelpers', false);
     $configBag->setBool('shouldAddModels', false);
     $configBag->setBool('shouldAddSetup', false);
     $configBag->setBool('shouldEnableModule', false);
 }