1
0
Fork 0

The config setting 'platform' is used to override platform packages.

Like suggested in #1522.

These overridden packages appear only during install/update and not
when running init, show and search commands.
I don't know if they should or not.
pull/2990/head
Joakim Israelsson 2014-05-14 20:31:42 +02:00
parent f76685ce4f
commit 571363dee2
2 changed files with 2 additions and 1 deletions

View File

@ -39,6 +39,7 @@ class Config
'optimize-autoloader' => false,
'prepend-autoloader' => true,
'github-domains' => array('github.com'),
'platform' => array(),
);
public static $defaultRepositories = array(

View File

@ -196,7 +196,7 @@ class Installer
// create installed repo, this contains all local packages + platform packages (php & extensions)
$localRepo = $this->repositoryManager->getLocalRepository();
$platformRepo = new PlatformRepository();
$platformRepo = new PlatformRepository($this->config->get('platform'));
$repos = array(
$localRepo,
new InstalledArrayRepository(array($installedRootPackage)),