PHP Класс Neos\Flow\Composer\ComposerUtility

Meant to be used only inside the Flow package management code.
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$composerLockCache array Runtime cache for composer.lock data
$composerManifestCache array Runtime cache for composer.json data

Открытые методы

Метод Описание
flushCaches ( ) : void Flushes the internal caches for manifest files and composer lock.
getComposerManifest ( string $manifestPath, string $configurationPath = null ) : array | mixed Returns contents of Composer manifest - or part there of.
getComposerPackageNameFromPackageKey ( string $packageKey ) : string Determines the composer package name ("vendor/foo-bar") from the Flow package key ("Vendor.Foo.Bar")
isFlowPackageType ( string $packageType ) : boolean Checks if the given (composer) package type is a type native to the neos project.
readComposerLock ( ) : array Read the content of the composer.lock
writeComposerManifest ( string $manifestPath, string $packageKey, array $composerManifestData = [] ) : array Write a composer manifest for the package.

Защищенные методы

Метод Описание
readComposerManifest ( string $manifestPath ) : array Read the content of composer.json in the given path

Описание методов

flushCaches() публичный статический Метод

Flushes the internal caches for manifest files and composer lock.
public static flushCaches ( ) : void
Результат void

getComposerManifest() публичный статический Метод

Returns contents of Composer manifest - or part there of.
public static getComposerManifest ( string $manifestPath, string $configurationPath = null ) : array | mixed
$manifestPath string
$configurationPath string Optional. Only return the part of the manifest indexed by configurationPath
Результат array | mixed

getComposerPackageNameFromPackageKey() публичный статический Метод

Determines the composer package name ("vendor/foo-bar") from the Flow package key ("Vendor.Foo.Bar")
public static getComposerPackageNameFromPackageKey ( string $packageKey ) : string
$packageKey string
Результат string

isFlowPackageType() публичный статический Метод

Checks if the given (composer) package type is a type native to the neos project.
public static isFlowPackageType ( string $packageType ) : boolean
$packageType string
Результат boolean

readComposerLock() публичный статический Метод

Read the content of the composer.lock
public static readComposerLock ( ) : array
Результат array

readComposerManifest() защищенный статический Метод

Read the content of composer.json in the given path
protected static readComposerManifest ( string $manifestPath ) : array
$manifestPath string
Результат array

writeComposerManifest() публичный статический Метод

Write a composer manifest for the package.
public static writeComposerManifest ( string $manifestPath, string $packageKey, array $composerManifestData = [] ) : array
$manifestPath string
$packageKey string
$composerManifestData array
Результат array the manifest data written

Описание свойств

$composerLockCache защищенное статическое свойство

Runtime cache for composer.lock data
protected static array $composerLockCache
Результат array

$composerManifestCache защищенное статическое свойство

Runtime cache for composer.json data
protected static array $composerManifestCache
Результат array