From 2cce584ee2d3a100ffa1bae4e259c2b8fad09077 Mon Sep 17 00:00:00 2001 From: Greg Anderson Date: Fri, 9 Sep 2016 18:32:52 -0700 Subject: [PATCH] Move GeneratedWrapper.tmpl --- src/Task/Development/GenerateTask.php | 2 +- src/Task/Development/GeneratedWrapper.tmpl | 39 ---------------------- 2 files changed, 1 insertion(+), 40 deletions(-) delete mode 100644 src/Task/Development/GeneratedWrapper.tmpl diff --git a/src/Task/Development/GenerateTask.php b/src/Task/Development/GenerateTask.php index 613efbcce..abd406768 100644 --- a/src/Task/Development/GenerateTask.php +++ b/src/Task/Development/GenerateTask.php @@ -85,7 +85,7 @@ public function run() $replacements['{immediateMethods}'] = "\n\n" . implode("\n\n", $immediateMethods); $replacements['{methodImplementations}'] = "\n\n" . implode("\n\n", $methodImplementations); - $template = file_get_contents(__DIR__ . "/GeneratedWrapper.tmpl"); + $template = file_get_contents(__DIR__ . '/../../../data/Task/Development/GeneratedWrapper.tmpl'); $template = str_replace(array_keys($replacements), array_values($replacements), $template); // Returning data in the $message will cause it to be printed. diff --git a/src/Task/Development/GeneratedWrapper.tmpl b/src/Task/Development/GeneratedWrapper.tmpl deleted file mode 100644 index 6682748f0..000000000 --- a/src/Task/Development/GeneratedWrapper.tmpl +++ /dev/null @@ -1,39 +0,0 @@ -task{wrapperClassName}() - * ... - * ->run(); - * - * // one line - * ... - * - * ?> - * ``` - * -{methodList} - */ -class {wrapperClassName} extends StackBasedTask -{ - protected $delegate; - - public function __construct() - { - $this->delegate = new {delegate}(); - } - - protected function getDelegate() - { - return $this->delegate; - }{immediateMethods}{methodImplementations} -}