|
@@ -69,6 +69,7 @@ class CreateProjectCommand extends Command
|
|
|
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.'),
|
|
|
new InputOption('no-install', null, InputOption::VALUE_NONE, 'Whether to skip installation of the package dependencies.'),
|
|
|
+ new InputOption('ignore-platform-reqs', null, InputOption::VALUE_NONE, 'Ignore platform requirements (php & ext- packages).'),
|
|
|
))
|
|
|
->setHelp(<<<EOT
|
|
|
The <info>create-project</info> command creates a new project from a given
|
|
@@ -125,11 +126,12 @@ EOT
|
|
|
$input->getOption('keep-vcs'),
|
|
|
$input->getOption('no-progress'),
|
|
|
$input->getOption('no-install'),
|
|
|
+ $input->getOption('ignore-platform-reqs'),
|
|
|
$input
|
|
|
);
|
|
|
}
|
|
|
|
|
|
- public function installProject(IOInterface $io, Config $config, $packageName, $directory = null, $packageVersion = null, $stability = 'stable', $preferSource = false, $preferDist = false, $installDevPackages = false, $repositoryUrl = null, $disablePlugins = false, $noScripts = false, $keepVcs = false, $noProgress = false, $noInstall = false, InputInterface $input)
|
|
|
+ public function installProject(IOInterface $io, Config $config, $packageName, $directory = null, $packageVersion = null, $stability = 'stable', $preferSource = false, $preferDist = false, $installDevPackages = false, $repositoryUrl = null, $disablePlugins = false, $noScripts = false, $keepVcs = false, $noProgress = false, $noInstall = false, $ignorePlatformReqs = false, InputInterface $input)
|
|
|
{
|
|
|
$oldCwd = getcwd();
|
|
|
|
|
@@ -159,7 +161,8 @@ EOT
|
|
|
$installer->setPreferSource($preferSource)
|
|
|
->setPreferDist($preferDist)
|
|
|
->setDevMode($installDevPackages)
|
|
|
- ->setRunScripts( ! $noScripts);
|
|
|
+ ->setRunScripts(!$noScripts)
|
|
|
+ ->setIgnorePlatformRequirements($ignorePlatformReqs);
|
|
|
|
|
|
if ($disablePlugins) {
|
|
|
$installer->disablePlugins();
|