Skip to content

Commit

Permalink
Make sure modTemplateVar is set before content in the gitify file (#88
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Mark-H committed Sep 15, 2015
1 parent a2b841e commit 32221a3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Changes that may have an impact on backwards compatibility (i.e. they may break existing workflows) are marked with `[BC]`.

## Current development (master)
- Make sure `modTemplateVar` is set before content in the gitify file (#88)
- Add `modTemplateVarResource` to default `truncate_on_force` for content to make sure the DB is cleaned properly on force (#111)
- Store installed packages with the full signature instead of just the package name (#110)
- Add `modx:upgrade` command to download a newer version and to run the upgrade (#116)
Expand Down
24 changes: 12 additions & 12 deletions src/Command/InitCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,18 @@ protected function execute(InputInterface $input, OutputInterface $output)
);
}

$question = new ConfirmationQuestion('Would you like to include <info>Template Variables</info>? <comment>(Y/N)</comment> ', true);
if ($helper->ask($input, $output, $question)) {
$dataTypes['template_variables'] = array(
'class' => 'modTemplateVar',
'primary' => 'name',
);
$dataTypes['template_variables_access'] = array(
'class' => 'modTemplateVarTemplate',
'primary' => array('tmplvarid', 'templateid')
);
}

$question = new ConfirmationQuestion('Would you like to include <info>Content</info>? <comment>(Y/N)</comment> ', true);
if ($helper->ask($input, $output, $question)) {
$dataTypes['content'] = array(
Expand Down Expand Up @@ -135,18 +147,6 @@ protected function execute(InputInterface $input, OutputInterface $output)
);
}

$question = new ConfirmationQuestion('Would you like to include <info>Template Variables</info>? <comment>(Y/N)</comment> ', true);
if ($helper->ask($input, $output, $question)) {
$dataTypes['template_variables'] = array(
'class' => 'modTemplateVar',
'primary' => 'name',
);
$dataTypes['template_variables_access'] = array(
'class' => 'modTemplateVarTemplate',
'primary' => array('tmplvarid', 'templateid')
);
}

$question = new ConfirmationQuestion('Would you like to include <info>Chunks</info>? <comment>(Y/N)</comment> ', true);
if ($helper->ask($input, $output, $question)) {
$dataTypes['chunks'] = array(
Expand Down

0 comments on commit 32221a3

Please sign in to comment.