Permalink
Browse files

add the xml.dist extesion to the prefil script

  • Loading branch information...
1 parent d5b8387 commit 64ede3ad833110661d7286f89fa60747e913cd88 @rfussien rfussien committed Sep 15, 2016
Showing with 5 additions and 4 deletions.
  1. +5 −4 prefill.php
View
@@ -13,7 +13,7 @@
'package_vendor' => ['Package vendor', '<vendor> in https://github.com/vendor/package', '{author_github_username}'],
'package_name' => ['Package name', '<package> in https://github.com/vendor/package', ''],
'package_description' => ['Package very short description', '', ''],
-
+
'psr4_namespace' => ['PSR-4 namespace', 'usually, Vendor\\Package', '{package_vendor}\\{package_name}'],
];
@@ -61,9 +61,9 @@ function interpolate($text, $values)
if ($modify == 'q') {
exit;
}
-
+
$values = [];
-
+
echo "----------------------------------------------------------------------\n";
echo "Please, provide the following information:\n";
echo "----------------------------------------------------------------------\n";
@@ -81,7 +81,7 @@ function interpolate($text, $values)
}
}
echo "\n";
-
+
echo "----------------------------------------------------------------------\n";
echo "Please, check that everything is correct:\n";
echo "----------------------------------------------------------------------\n";
@@ -94,6 +94,7 @@ function interpolate($text, $values)
$files = array_merge(
glob(__DIR__ . '/*.md'),
+ glob(__DIR__ . '/*.xml.dist'),
glob(__DIR__ . '/composer.json'),
glob(__DIR__ . '/src/*.php')
);

0 comments on commit 64ede3a

Please sign in to comment.