0 follower

Final Class Yiisoft\Config\Composer\PackageFilesProcess

InheritanceYiisoft\Config\Composer\PackageFilesProcess

Public Methods

Hide inherited methods

Method Description Defined By
__construct() Yiisoft\Config\Composer\PackageFilesProcess
files() Returns the processed package configuration files. Yiisoft\Config\Composer\PackageFilesProcess
paths() Returns the config paths instance. Yiisoft\Config\Composer\PackageFilesProcess

Method Details

Hide inherited methods

__construct() public method

public mixed __construct ( \Composer\Composer $composer, string[] $packageNames = [] )
$composer \Composer\Composer

The composer instance.

$packageNames string[]

The pretty package names to build. If the array is empty, the files of all packages will be build.

                public function __construct(
    private readonly Composer $composer,
    array $packageNames = [],
) {
    $this->helper = new ProcessHelper($composer);
    $this->process($packageNames);
}

            
files() public method

Returns the processed package configuration files.

public Yiisoft\Config\Composer\PackageFile[] files ( )
return Yiisoft\Config\Composer\PackageFile[]

The processed package configuration files.

                public function files(): array
{
    return $this->packageFiles;
}

            
paths() public method

Returns the config paths instance.

public Yiisoft\Config\ConfigPaths paths ( )
return Yiisoft\Config\ConfigPaths

The config paths instance.

                public function paths(): ConfigPaths
{
    return $this->helper->getPaths();
}