Skip to content

Commit e039550

Browse files
committed
Fix issue with override commands, currently realized by replacing the original command singleton
1 parent 9a7c2bf commit e039550

File tree

3 files changed

+19
-14
lines changed

3 files changed

+19
-14
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
1.1.2
2+
date: 2016-10-26
3+
changes:
4+
- Fix issue with override commands, currently realized by replacing the original command singleton.
5+
-
6+
17
1.1.1
28
date: 2016-10-12
39
changes:

src/BuilderExtensionServiceProvider.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,8 @@ class BuilderExtensionServiceProvider extends AddonServiceProvider
2121
* @var array
2222
*/
2323
protected $commands = [
24-
'Anomaly\Streams\Platform\Addon\Console\MakeAddon' => 'Websemantics\BuilderExtension\Console\MakeAddon',
25-
'Anomaly\Streams\Platform\Stream\Console\Make' => 'Websemantics\BuilderExtension\Console\Make',
26-
'Websemantics\BuilderExtension\Console\ListTemplates' => 'Websemantics\BuilderExtension\Console\ListTemplates',
27-
'Websemantics\BuilderExtension\Console\ClearTemplates' => 'Websemantics\BuilderExtension\Console\ClearTemplates'
24+
'Websemantics\BuilderExtension\Console\ListTemplates',
25+
'Websemantics\BuilderExtension\Console\ClearTemplates'
2826
];
2927

3028
/**
@@ -53,6 +51,8 @@ class BuilderExtensionServiceProvider extends AddonServiceProvider
5351
*/
5452
protected $singletons = [
5553
'migration.creator' => 'Websemantics\BuilderExtension\Database\Migration\MigrationCreator',
54+
'Anomaly\Streams\Platform\Addon\Console\MakeAddon' => 'Websemantics\BuilderExtension\Console\MakeAddon',
55+
'Anomaly\Streams\Platform\Stream\Console\Make' => 'Websemantics\BuilderExtension\Console\Make',
5656
'Illuminate\Filesystem\Filesystem' => 'Websemantics\BuilderExtension\Filesystem\Filesystem'
5757
];
5858
}

src/Console/MakeAddon.php

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class MakeAddon extends \Anomaly\Streams\Platform\Addon\Console\MakeAddon
4848
* Execute the console command.
4949
*/
5050
public function fire(AddonManager $addons)
51-
{
51+
{
5252
$this->logo();
5353

5454
list($vendor, $type, $slug, $path) =
@@ -90,10 +90,10 @@ public function fire(AddonManager $addons)
9090
* @return array
9191
*/
9292
protected function getArguments()
93-
{
93+
{
9494
return [
9595
['namespace', InputArgument::REQUIRED, 'The addon\'s desired dot namespace.'],
96-
['template', InputArgument::OPTIONAL, 'The template name to scaffold.'],
96+
['template', InputArgument::OPTIONAL, 'The template name to scaffold.']
9797
];
9898
}
9999

@@ -105,13 +105,12 @@ protected function getArguments()
105105
protected function getOptions()
106106
{
107107
return [
108-
['force', null, InputOption::VALUE_NONE, "Indicates whether to force a fresh download of the template."],
109-
['shared', null, InputOption::VALUE_NONE, 'Indicates if the addon should be created in shared addons.'],
110-
['migration', null, InputOption::VALUE_NONE, 'Indicates if a fields migration should be created.'],
111-
['template', null, InputOption::VALUE_NONE, "Indicates whether an addon or an addon template should be created."],
112-
['admin', null, InputOption::VALUE_NONE, "Indicates whether the addon is an Admin theme."],
113-
['defaults', null, InputOption::VALUE_NONE, "Indicates whether to force template default values."],
108+
['force', null, InputOption::VALUE_NONE, "Indicates whether to force a fresh download of the template."],
109+
['shared', null, InputOption::VALUE_NONE, 'Indicates if the addon should be created in shared addons.'],
110+
['migration', null, InputOption::VALUE_NONE, 'Indicates if a fields migration should be created.'],
111+
['template', null, InputOption::VALUE_NONE, "Indicates whether an addon or an addon template should be created."],
112+
['admin', null, InputOption::VALUE_NONE, "Indicates whether the addon is an Admin theme."],
113+
['defaults', null, InputOption::VALUE_NONE, "Indicates whether to force template default values."],
114114
];
115115
}
116-
117116
}

0 commit comments

Comments
 (0)