1
0
Fork 0

Skip all scripts and not just command ones

pull/727/head
Jordi Boggiano 2012-05-23 11:15:58 +02:00
parent 1f2f161508
commit e25ccddeb7
1 changed files with 2 additions and 2 deletions

View File

@ -367,7 +367,7 @@ class Installer
if (!$this->dryRun) {
$event = 'Composer\Script\ScriptEvents::PRE_PACKAGE_'.strtoupper($operation->getJobType());
if (defined($event)) {
if (defined($event) && $this->runScripts) {
$this->eventDispatcher->dispatchPackageEvent(constant($event), $operation);
}
@ -407,7 +407,7 @@ class Installer
$this->installationManager->execute($localRepo, $operation);
$event = 'Composer\Script\ScriptEvents::POST_PACKAGE_'.strtoupper($operation->getJobType());
if (defined($event)) {
if (defined($event) && $this->runScripts) {
$this->eventDispatcher->dispatchPackageEvent(constant($event), $operation);
}