From 0a9315b76b0dff17f2bbd98b64e4690a2c729f35 Mon Sep 17 00:00:00 2001 From: Shea Lewis Date: Tue, 1 Mar 2016 11:53:53 -0800 Subject: [PATCH] Update manifest stub --- resources/stubs/manifest.stub | 3 ++- src/Console/Generators/MakeModuleCommand.php | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/resources/stubs/manifest.stub b/resources/stubs/manifest.stub index 18d3b2e7..ff738520 100644 --- a/resources/stubs/manifest.stub +++ b/resources/stubs/manifest.stub @@ -1,7 +1,8 @@ { "name": "{{name}}", "slug": "{{slug}}", - "namespace": "{{namespace}}", "version": "{{version}}", + "author": "{{author}}", + "license": "{{license}}", "description": "{{description}}" } diff --git a/src/Console/Generators/MakeModuleCommand.php b/src/Console/Generators/MakeModuleCommand.php index 8b508686..8b367db1 100644 --- a/src/Console/Generators/MakeModuleCommand.php +++ b/src/Console/Generators/MakeModuleCommand.php @@ -297,8 +297,8 @@ protected function getStubContent($key) protected function formatContent($content) { return str_replace( - ['{{slug}}', '{{name}}', '{{namespace}}', '{{version}}', '{{description}}', '{{author}}', '{{path}}'], - [$this->container['slug'], $this->container['name'], $this->container['namespace'], $this->container['version'], $this->container['description'], $this->container['author'], $this->module->getNamespace()], + ['{{slug}}', '{{name}}', '{{namespace}}', '{{version}}', '{{description}}', '{{author}}', '{{license}}'], + [$this->container['slug'], $this->container['name'], $this->container['namespace'], $this->container['version'], $this->container['description'], $this->container['author'], $this->container['license']], $content ); }