Composer API
Class

Composer\Factory

class Factory

Creates a configured instance of composer.

Methods

static Config createConfig(IOInterface $io = null, $cwd = null)

static  getComposerFile()

static  createAdditionalStyles()

static ConsoleOutput createOutput()

Creates a ConsoleOutput instance

static  createDefaultRepositories(IOInterface $io = null, Config $config = null, RepositoryManager $rm = null)

Composer createComposer(IOInterface $io, $localConfig = null, $disablePlugins = false, $cwd = null, $fullLoad = true)

Creates a Composer instance

static Composer createGlobal(IOInterface $io, bool $disablePlugins = false)

DownloadManager createDownloadManager(IOInterface $io, Config $config, EventDispatcher $eventDispatcher = null, RemoteFilesystem $rfs = null)

ArchiveManager createArchiveManager(Config $config, DownloadManager $dm = null)

static Composer create(IOInterface $io, mixed $config = null, bool $disablePlugins = false)

static RemoteFilesystem createRemoteFilesystem(IOInterface $io, Config $config = null, array $options = array())

Details

at line 153
static public Config createConfig(IOInterface $io = null, $cwd = null)

Parameters

IOInterface $io
$cwd

Return Value

Config

at line 220
static public getComposerFile()

at line 225
static public createAdditionalStyles()

at line 238
static public ConsoleOutput createOutput()

Creates a ConsoleOutput instance

Return Value

ConsoleOutput

at line 249
static public createDefaultRepositories(IOInterface $io = null, Config $config = null, RepositoryManager $rm = null)

Parameters

IOInterface $io
Config $config
RepositoryManager $rm

at line 266
public Composer createComposer(IOInterface $io, $localConfig = null, $disablePlugins = false, $cwd = null, $fullLoad = true)

Creates a Composer instance

Parameters

IOInterface $io
$localConfig
$disablePlugins
$cwd
$fullLoad

Return Value

Composer

Exceptions

InvalidArgumentException
UnexpectedValueException

at line 416
static public Composer createGlobal(IOInterface $io, bool $disablePlugins = false)

Parameters

IOInterface $io IO instance
bool $disablePlugins Whether plugins should not be loaded

Return Value

Composer

at line 454
public DownloadManager createDownloadManager(IOInterface $io, Config $config, EventDispatcher $eventDispatcher = null, RemoteFilesystem $rfs = null)

Parameters

IOInterface $io
Config $config
EventDispatcher $eventDispatcher
RemoteFilesystem $rfs

Return Value

DownloadManager

at line 504
public ArchiveManager createArchiveManager(Config $config, DownloadManager $dm = null)

Parameters

Config $config The configuration
DownloadManager $dm Manager use to download sources

Return Value

ArchiveManager

at line 572
static public Composer create(IOInterface $io, mixed $config = null, bool $disablePlugins = false)

Parameters

IOInterface $io IO instance
mixed $config either a configuration array or a filename to read from, if null it will read from the default filename
bool $disablePlugins Whether plugins should not be loaded

Return Value

Composer

at line 585
static public RemoteFilesystem createRemoteFilesystem(IOInterface $io, Config $config = null, array $options = array())

Parameters

IOInterface $io IO instance
Config $config Config instance
array $options Array of options passed directly to RemoteFilesystem constructor

Return Value

RemoteFilesystem