|
@@ -62,7 +62,7 @@ class CreateProjectCommand extends Command
|
|
|
new InputOption('repository-url', null, InputOption::VALUE_REQUIRED, 'Pick a different repository url to look for the package.'),
|
|
|
new InputOption('dev', null, InputOption::VALUE_NONE, 'Enables installation of require-dev packages (enabled by default, only present for BC).'),
|
|
|
new InputOption('no-dev', null, InputOption::VALUE_NONE, 'Disables installation of require-dev packages.'),
|
|
|
- new InputOption('no-custom-installers', null, InputOption::VALUE_NONE, 'Whether to disable custom installers.'),
|
|
|
+ new InputOption('no-plugins', null, InputOption::VALUE_NONE, 'Whether to disable plugins.'),
|
|
|
new InputOption('no-scripts', null, InputOption::VALUE_NONE, 'Whether to prevent execution of all defined scripts in the root package.'),
|
|
|
new InputOption('no-progress', null, InputOption::VALUE_NONE, 'Do not output download progress.'),
|
|
|
new InputOption('keep-vcs', null, InputOption::VALUE_NONE, 'Whether to prevent deletion vcs folder.'),
|
|
@@ -127,19 +127,19 @@ EOT
|
|
|
$preferDist,
|
|
|
!$input->getOption('no-dev'),
|
|
|
$input->getOption('repository-url'),
|
|
|
- $input->getOption('no-custom-installers'),
|
|
|
+ $input->getOption('no-plugins'),
|
|
|
$input->getOption('no-scripts'),
|
|
|
$input->getOption('keep-vcs'),
|
|
|
$input->getOption('no-progress')
|
|
|
);
|
|
|
}
|
|
|
|
|
|
- public function installProject(IOInterface $io, $config, $packageName, $directory = null, $packageVersion = null, $stability = 'stable', $preferSource = false, $preferDist = false, $installDevPackages = false, $repositoryUrl = null, $disableCustomInstallers = false, $noScripts = false, $keepVcs = false, $noProgress = false)
|
|
|
+ public function installProject(IOInterface $io, $config, $packageName, $directory = null, $packageVersion = null, $stability = 'stable', $preferSource = false, $preferDist = false, $installDevPackages = false, $repositoryUrl = null, $disablePlugins = false, $noScripts = false, $keepVcs = false, $noProgress = false)
|
|
|
{
|
|
|
$oldCwd = getcwd();
|
|
|
|
|
|
if ($packageName !== null) {
|
|
|
- $installedFromVcs = $this->installRootPackage($io, $config, $packageName, $directory, $packageVersion, $stability, $preferSource, $preferDist, $installDevPackages, $repositoryUrl, $disableCustomInstallers, $noScripts, $keepVcs, $noProgress);
|
|
|
+ $installedFromVcs = $this->installRootPackage($io, $config, $packageName, $directory, $packageVersion, $stability, $preferSource, $preferDist, $installDevPackages, $repositoryUrl, $disablePlugins, $noScripts, $keepVcs, $noProgress);
|
|
|
} else {
|
|
|
$installedFromVcs = false;
|
|
|
}
|
|
@@ -158,8 +158,8 @@ EOT
|
|
|
->setDevMode($installDevPackages)
|
|
|
->setRunScripts( ! $noScripts);
|
|
|
|
|
|
- if ($disableCustomInstallers) {
|
|
|
- $installer->disableCustomInstallers();
|
|
|
+ if ($disablePlugins) {
|
|
|
+ $installer->disablePlugins();
|
|
|
}
|
|
|
|
|
|
if (!$installer->run()) {
|
|
@@ -226,7 +226,7 @@ EOT
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
- protected function installRootPackage(IOInterface $io, $config, $packageName, $directory = null, $packageVersion = null, $stability = 'stable', $preferSource = false, $preferDist = false, $installDevPackages = false, $repositoryUrl = null, $disableCustomInstallers = false, $noScripts = false, $keepVcs = false, $noProgress = false)
|
|
|
+ protected function installRootPackage(IOInterface $io, $config, $packageName, $directory = null, $packageVersion = null, $stability = 'stable', $preferSource = false, $preferDist = false, $installDevPackages = false, $repositoryUrl = null, $disablePlugins = false, $noScripts = false, $keepVcs = false, $noProgress = false)
|
|
|
{
|
|
|
$stability = strtolower($stability);
|
|
|
if ($stability === 'rc') {
|
|
@@ -285,8 +285,8 @@ EOT
|
|
|
|
|
|
$io->write('<info>Installing ' . $package->getName() . ' (' . VersionParser::formatVersion($package, false) . ')</info>');
|
|
|
|
|
|
- if ($disableCustomInstallers) {
|
|
|
- $io->write('<info>Custom installers have been disabled.</info>');
|
|
|
+ if ($disablePlugins) {
|
|
|
+ $io->write('<info>Plugins have been disabled.</info>');
|
|
|
}
|
|
|
|
|
|
if (0 === strpos($package->getPrettyVersion(), 'dev-') && in_array($package->getSourceType(), array('git', 'hg'))) {
|