Skip to content

Commit

Permalink
Update manifest stub
Browse files Browse the repository at this point in the history
  • Loading branch information
kaidesu committed Mar 1, 2016
1 parent 7337986 commit 0a9315b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion resources/stubs/manifest.stub
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "{{name}}",
"slug": "{{slug}}",
"namespace": "{{namespace}}",
"version": "{{version}}",
"author": "{{author}}",
"license": "{{license}}",
"description": "{{description}}"
}
4 changes: 2 additions & 2 deletions src/Console/Generators/MakeModuleCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
}
Expand Down

0 comments on commit 0a9315b

Please sign in to comment.