more refactoring; now the package hook starts to make sense
[pharext/pharext] / src / pharext_install.tpl.php
diff --git a/src/pharext_install.tpl.php b/src/pharext_install.tpl.php
deleted file mode 100644 (file)
index f7a356d..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-<?='<?php'?>
-
-/**
- * Generated by pharext v<?=pharext\VERSION?> at <?=date("Y-m-d H:i:s T")?>.
- */
-namespace pharext;
-
-use pharext\Cli\Args as CliArgs;
-
-return function(Installer $installer) {
-       $args = $installer->getArgs();
-       <?php foreach ($configure as $cfg) : ?>
-       
-       $args->compile([[
-               null, 
-               "<?=$cfg["name"]?>", 
-               "<?=ucfirst($cfg["prompt"])?>", 
-               CliArgs::OPTARG,
-               <?php if (strlen($cfg["default"])) : ?>
-               "<?=$cfg["default"]?>"
-               <?php else : ?>
-               NULL
-               <?php endif; ?>
-               
-       ]]);
-       <?php endforeach; ?>
-       
-       return function(Installer $installer) {
-               $args = $installer->getArgs();
-               <?php foreach ($configure as $cfg) : ?>
-               
-               if (isset($args["<?=$cfg["name"]?>"])) {
-                       $args->configure = "--<?=$cfg["name"]?>=".$args["<?=$cfg["name"]?>"];
-               }
-               <?php endforeach; ?>
-               
-       };
-};