|
|
@ -183,6 +183,7 @@ EOT
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$composer = Factory::create($io, null, $disablePlugins);
|
|
|
|
$composer = Factory::create($io, null, $disablePlugins);
|
|
|
|
|
|
|
|
$composer->getEventDispatcher()->setRunScripts(!$noScripts);
|
|
|
|
|
|
|
|
|
|
|
|
// add the repository to the composer.json and use it for the install run later
|
|
|
|
// add the repository to the composer.json and use it for the install run later
|
|
|
|
if ($repositories !== null && $addRepository) {
|
|
|
|
if ($repositories !== null && $addRepository) {
|
|
|
@ -208,10 +209,8 @@ EOT
|
|
|
|
$process = new ProcessExecutor($io);
|
|
|
|
$process = new ProcessExecutor($io);
|
|
|
|
$fs = new Filesystem($process);
|
|
|
|
$fs = new Filesystem($process);
|
|
|
|
|
|
|
|
|
|
|
|
if ($noScripts === false) {
|
|
|
|
// dispatch event
|
|
|
|
// dispatch event
|
|
|
|
$composer->getEventDispatcher()->dispatchScript(ScriptEvents::POST_ROOT_PACKAGE_INSTALL, $installDevPackages);
|
|
|
|
$composer->getEventDispatcher()->dispatchScript(ScriptEvents::POST_ROOT_PACKAGE_INSTALL, $installDevPackages);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// use the new config including the newly installed project
|
|
|
|
// use the new config including the newly installed project
|
|
|
|
$config = $composer->getConfig();
|
|
|
|
$config = $composer->getConfig();
|
|
|
@ -225,7 +224,6 @@ EOT
|
|
|
|
$installer->setPreferSource($preferSource)
|
|
|
|
$installer->setPreferSource($preferSource)
|
|
|
|
->setPreferDist($preferDist)
|
|
|
|
->setPreferDist($preferDist)
|
|
|
|
->setDevMode($installDevPackages)
|
|
|
|
->setDevMode($installDevPackages)
|
|
|
|
->setRunScripts(!$noScripts)
|
|
|
|
|
|
|
|
->setIgnorePlatformRequirements($ignorePlatformReqs)
|
|
|
|
->setIgnorePlatformRequirements($ignorePlatformReqs)
|
|
|
|
->setSuggestedPackagesReporter($this->suggestedPackagesReporter)
|
|
|
|
->setSuggestedPackagesReporter($this->suggestedPackagesReporter)
|
|
|
|
->setOptimizeAutoloader($config->get('optimize-autoloader'))
|
|
|
|
->setOptimizeAutoloader($config->get('optimize-autoloader'))
|
|
|
@ -290,10 +288,8 @@ EOT
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ($noScripts === false) {
|
|
|
|
// dispatch event
|
|
|
|
// dispatch event
|
|
|
|
$composer->getEventDispatcher()->dispatchScript(ScriptEvents::POST_CREATE_PROJECT_CMD, $installDevPackages);
|
|
|
|
$composer->getEventDispatcher()->dispatchScript(ScriptEvents::POST_CREATE_PROJECT_CMD, $installDevPackages);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
chdir($oldCwd);
|
|
|
|
chdir($oldCwd);
|
|
|
|
$vendorComposerDir = $config->get('vendor-dir').'/composer';
|
|
|
|
$vendorComposerDir = $config->get('vendor-dir').'/composer';
|
|
|
|