Final Class Yiisoft\Config\Composer\ConfigSettings
| Inheritance | Yiisoft\ |
|---|
Public Methods
| Method | Description | Defined By |
|---|---|---|
| configPath() | Yiisoft\ |
|
| environmentsConfiguration() | Returns the environments configuration. | Yiisoft\ |
| forRootPackage() | Yiisoft\ |
|
| forVendorPackage() | Yiisoft\ |
|
| options() | Yiisoft\ |
|
| packageConfiguration() | Returns the root package configuration. | Yiisoft\ |
| path() | Yiisoft\ |
Method Details
| public string configPath ( ) |
public function configPath(): string
{
$sourceDirectory = $this->options->sourceDirectory();
return $this->path . (empty($sourceDirectory) ? '' : "/$sourceDirectory");
}
Returns the environments configuration.
| public array environmentsConfiguration ( ) | ||
| return | array |
The environments configuration. |
|---|---|---|
public function environmentsConfiguration(): array
{
return $this->environmentsConfiguration;
}
| public static self forRootPackage ( \ | ||
| $composer | \ |
|
public static function forRootPackage(Composer $composer): self
{
/** @psalm-suppress PossiblyFalseArgument */
return new self(
realpath(dirname(Factory::getComposerFile())),
$composer->getPackage()->getExtra(),
);
}
| public static self forVendorPackage ( \ | ||
| $composer | \ |
|
| $package | \ |
|
public static function forVendorPackage(Composer $composer, BasePackage $package): self
{
/**
* @var string $rootPath Because we use library and composer-plugins only which always has installation path.
* @see PackagesListBuilder::getAllPackages()
*/
$rootPath = $composer->getInstallationManager()->getInstallPath($package);
return new self($rootPath, $package->getExtra());
}
| public Yiisoft\ |
public function options(): Options
{
return $this->options;
}
Returns the root package configuration.
| public array packageConfiguration ( ) | ||
| return | array |
The root package configuration. |
|---|---|---|
public function packageConfiguration(): array
{
return $this->packageConfiguration;
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.