PHP Class Pyrech\ComposerChangelogs\Config\ConfigLocator

Show file Open project: pyrech/composer-changelogs Class Usage Examples

Public Properties

Property Type Description
$cache array

Public Methods

Method Description
__construct ( Composer\Composer $composer )
getConfig ( string $key ) : array
getPath ( string $key ) : string | null
locate ( string $key ) : boolean Try to locate where is the config for the given key.

Private Methods

Method Description
locateGlobal ( string $key ) : boolean Search config in the global root package.
locateLocal ( string $key ) : boolean Search config in the local root package.

Method Details

__construct() public method

public __construct ( Composer\Composer $composer )
$composer Composer\Composer

getConfig() public method

public getConfig ( string $key ) : array
$key string
return array

getPath() public method

public getPath ( string $key ) : string | null
$key string
return string | null mixed

locate() public method

Try to locate where is the config for the given key.
public locate ( string $key ) : boolean
$key string
return boolean

Property Details

$cache public property

public array $cache
return array