ComposerUtility
class ComposerUtility (View source)
Utility to access composer information like composer manifests (composer.json) and the lock file.
Meant to be used only inside the Flow package management code.
Properties
static protected array | $composerManifestCache | Runtime cache for composer.json data |
|
static protected array | $composerLockCache | Runtime cache for composer.lock data |
Methods
Returns contents of Composer manifest - or part there of.
Read the content of the composer.lock
Read the content of composer.json in the given path
Checks if the given (composer) package type is a type native to the neos project.
Determines the composer package name ("vendor/foo-bar") from the Flow package key ("Vendor.Foo.Bar")
Write a composer manifest for the package.
Get the package version of the given package Return normalized package version.
Flushes the internal caches for manifest files and composer lock.
Details
static array|mixed
getComposerManifest(string $manifestPath, string $configurationPath = null)
Returns contents of Composer manifest - or part there of.
static array
readComposerLock()
Read the content of the composer.lock
static protected array
readComposerManifest(string $manifestPath)
Read the content of composer.json in the given path
static bool
isFlowPackageType(string $packageType)
Checks if the given (composer) package type is a type native to the neos project.
static string
getComposerPackageNameFromPackageKey(string $packageKey)
Determines the composer package name ("vendor/foo-bar") from the Flow package key ("Vendor.Foo.Bar")
static array
writeComposerManifest(string $manifestPath, string $packageKey, array $composerManifestData = [])
Write a composer manifest for the package.
static string
getPackageVersion(string $composerName)
Get the package version of the given package Return normalized package version.
static void
flushCaches()
Flushes the internal caches for manifest files and composer lock.