Methods

getComposerFile()

getComposerFile() 

createAdditionalStyles()

createAdditionalStyles() 

createComposer()

createComposer(\Composer\IO\IOInterface  $io, array|string|null  $localConfig = null, boolean  $disablePlugins = false,   $cwd = null, boolean  $fullLoad = true) : \Composer\Composer

Creates a Composer instance

Parameters

\Composer\IO\IOInterface $io

IO instance

array|string|null $localConfig

either a configuration array or a filename to read from, if null it will read from the default filename

boolean $disablePlugins

Whether plugins should not be loaded

$cwd
boolean $fullLoad

Whether to initialize everything or only main project stuff (used when loading the global composer)

Throws

\InvalidArgumentException
\UnexpectedValueException

Returns

\Composer\Composer

createGlobal()

createGlobal(\Composer\IO\IOInterface  $io, boolean  $disablePlugins = false) : \Composer\Composer

Parameters

\Composer\IO\IOInterface $io

IO instance

boolean $disablePlugins

Whether plugins should not be loaded

Returns

\Composer\Composer

create()

create(\Composer\IO\IOInterface  $io, mixed  $config = null, boolean  $disablePlugins = false) : \Composer\Composer

Parameters

\Composer\IO\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

boolean $disablePlugins

Whether plugins should not be loaded

Returns

\Composer\Composer

createRemoteFilesystem()

createRemoteFilesystem(\Composer\IO\IOInterface  $io, \Composer\Config  $config = null, array  $options = array()) : \Composer\Util\RemoteFilesystem

Parameters

\Composer\IO\IOInterface $io

IO instance

\Composer\Config $config

Config instance

array $options

Array of options passed directly to RemoteFilesystem constructor

Returns

\Composer\Util\RemoteFilesystem

getHomeDir()

getHomeDir() : string

Throws

\RuntimeException

Returns

string

getCacheDir()

getCacheDir(string  $home) : string

Parameters

string $home

Returns

string

getDataDir()

getDataDir(string  $home) : string

Parameters

string $home

Returns

string

useXdg()

useXdg() : boolean

Returns

boolean

getUserDir()

getUserDir() : string

Throws

\RuntimeException

Returns

string