interface ConfigSourceInterface (View source)

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

addRepository(string $name, array $config)

Add a repository

Parameters

string $name Name
array $config Configuration

removeRepository(string $name)

Remove a repository

Parameters

string $name

addConfigSetting(string $name, string $value)

Add a config setting

Parameters

string $name Name
string $value Value

removeConfigSetting(string $name)

Remove a config setting

Parameters

string $name

addProperty(string $name, string $value)

Add a property

Parameters

string $name Name
string $value Value

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

string getName()

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

Return Value

string