Composer
in package
implements
ResourceDetectorInterface
FinalYes
Detect service name and version of root package. Not included in `all` detectors.
Table of Contents
Interfaces
Constants
- UNSET_NAME : mixed = '__root__'
- Placeholder name that Composer reports for a root package with no `name` set in composer.json (Composer\Package\Loader\RootPackageLoader).
- UNSET_VERSION : mixed = '1.0.0+no-version-set'
- Placeholder version that Composer reports for a root package with no explicit version (Composer\Package\RootPackage::DEFAULT_PRETTY_VERSION).
Methods
Constants
UNSET_NAME
Placeholder name that Composer reports for a root package with no `name` set in composer.json (Composer\Package\Loader\RootPackageLoader).
private
mixed
UNSET_NAME
= '__root__'
UNSET_VERSION
Placeholder version that Composer reports for a root package with no explicit version (Composer\Package\RootPackage::DEFAULT_PRETTY_VERSION).
private
mixed
UNSET_VERSION
= '1.0.0+no-version-set'
Methods
getResource()
public
getResource() : ResourceInfo
Attributes
- #[Override]