\Composer\ConfigConfigSourceInterface

Configuration Source Interface

Summary

Methods
Constants
addRepository()
removeRepository()
addConfigSetting()
removeConfigSetting()
addProperty()
removeProperty()
addLink()
removeLink()
getName()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

addRepository()

addRepository(string  $name, array  $config) 

Add a repository

Parameters

string $name

Name

array $config

Configuration

removeRepository()

removeRepository(string  $name) 

Remove a repository

Parameters

string $name

addConfigSetting()

addConfigSetting(string  $name, string  $value) 

Add a config setting

Parameters

string $name

Name

string $value

Value

removeConfigSetting()

removeConfigSetting(string  $name) 

Remove a config setting

Parameters

string $name

addProperty()

addProperty(string  $name, string  $value) 

Add a property

Parameters

string $name

Name

string $value

Value

removeProperty()

removeProperty(string  $name) 

Remove a property

Parameters

string $name

addLink()

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

Add a package link

Parameters

string $type

Type (require, require-dev, provide, suggest, replace, conflict)

string $name

Name

string $value

Value

removeLink()

removeLink(string  $type, string  $name) 

Remove a package link

Parameters

string $type

Type (require, require-dev, provide, suggest, replace, conflict)

string $name

Name

getName()

getName() : string

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

Returns

string