We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d33939 commit 0a802aaCopy full SHA for 0a802aa
src/ComposerPlugin.php
@@ -340,7 +340,7 @@ private function detectCaptainExecutable(): void
340
private function isPluginDisabled(): bool
341
{
342
$extra = $this->composer->getPackage()->getExtra();
343
- return (bool) ($extra['captainhook']['disable-plugin'] ?? false);
+ return ($extra['captainhook']['disable-plugin'] ?? false) || getenv('CAPTAINHOOK_DISABLE') === 'true';
344
}
345
346
/**
@@ -351,6 +351,6 @@ private function isPluginDisabled(): bool
351
private function isForceInstall(): bool
352
353
354
- return (bool) ($extra['captainhook']['force-install'] ?? false);
+ return ($extra['captainhook']['force-install'] ?? false) || getenv('CAPTAINHOOK_FORCE_INSTALL') === 'true';
355
356
0 commit comments