Composer API
Interface

Composer\Config\ConfigSourceInterface

interface ConfigSourceInterface

Configuration Source Interface

Methods

addRepository(string $name, array $config)

Add a repository

removeRepository(string $name)

Remove a repository

addConfigSetting(string $name, string $value)

Add a config setting

removeConfigSetting(string $name)

Remove a config setting

addProperty(string $name, string $value)

Add a property

removeProperty(string $name)

Remove a property

addLink(string $type, string $name, string $value)

Add a package link

removeLink(string $type, string $name)

Remove a package link

string getName()

Gives a user-friendly name to this source (file path or so)

Details

at line 29
public addRepository(string $name, array $config)

Add a repository

Parameters

string $name Name
array $config Configuration

at line 36
public removeRepository(string $name)

Remove a repository

Parameters

string $name

at line 44
public addConfigSetting(string $name, string $value)

Add a config setting

Parameters

string $name Name
string $value Value

at line 51
public removeConfigSetting(string $name)

Remove a config setting

Parameters

string $name

at line 59
public addProperty(string $name, string $value)

Add a property

Parameters

string $name Name
string $value Value

at line 66
public removeProperty(string $name)

Remove a property

Parameters

string $name

Add a package link

Parameters

string $type Type (require, require-dev, provide, suggest, replace, conflict)
string $name Name
string $value Value

Remove a package link

Parameters

string $type Type (require, require-dev, provide, suggest, replace, conflict)
string $name Name

at line 90
public string getName()

Gives a user-friendly name to this source (file path or so)

Return Value

string