Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.

Commit 9c7f55e

Browse files
authored
Merge pull request #25 from modulusphp/fix/plugin-install
Fix/plugin install
2 parents 1e37609 + 4a64081 commit 9c7f55e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Commands/PluginInstall.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,11 @@ private function install(InputInterface $input, OutputInterface $output)
6060

6161
$pluginInfo = $this->getInfo($plugin);
6262

63-
if (Validate::check($plugin, $pluginInfo)) {
63+
$package = $plugin::PACKAGE;
64+
65+
$version = $plugin::VERSION;
6466

65-
$package = $plugin::PACKAGE;
66-
$version = $plugin::VERSION;
67+
if (Validate::check($plugin, $pluginInfo)) {
6768

6869
if (config('app.plugins') && in_array($pluginInfo->name, config('app.plugins'))) {
6970
return $output->writeln("<error>{$package} is a registered plugin. Aborting...</error>");

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "modulusphp/console",
33
"description": "Modulus Commands",
4-
"version": "1.9.6.6",
4+
"version": "1.9.6.7",
55
"license": "MIT",
66
"type": "package",
77
"authors": [{

0 commit comments

Comments
 (0)