PHP 클래스 Neos\Flow\Composer\ComposerUtility

Meant to be used only inside the Flow package management code.
파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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