PHP Class GrumPHP\Locator\ConfigurationFile

Show file Open project: phpro/grumphp Class Usage Examples

Public Methods

Method Description
__construct ( Filesystem $filesystem ) ConfigurationFile constructor.
locate ( string $workingDir, Composer\Package\PackageInterface $package = null ) : string

Private Methods

Method Description
locateConfigFileWithDistSupport ( $defaultPath ) : string
useConfigPathFromComposer ( Composer\Package\PackageInterface $package, $defaultPath ) : string

Method Details

__construct() public method

ConfigurationFile constructor.
public __construct ( Filesystem $filesystem )
$filesystem GrumPHP\Util\Filesystem

locate() public method

public locate ( string $workingDir, Composer\Package\PackageInterface $package = null ) : string
$workingDir string
$package Composer\Package\PackageInterface
return string