GenericPackage
class GenericPackage implements PackageInterface, PackageKeyAwareInterface (View source)
The generic base package that represents third party packages
Properties
protected string | $packageKey | Unique key of this package. Example for the Flow package: "Neos.Flow" |
|
protected string | $composerName | composer name for this package |
|
protected string | $packagePath | Full path to this package's main directory |
|
protected string[] | $namespaces | Array of all declared autoload namespaces contained in this package |
|
protected string[] | $autoloadTypes | ||
protected array | $autoloadConfiguration | ||
protected array | $flattenedAutoloadConfiguration |
Methods
Constructor
Returns the array of filenames of the class files
Returns the package key of this package.
Returns the packages composer name
Returns array of all declared autoload namespaces contained in this package
No description
Returns the full path to this package's main directory
No description
Get the autoload configuration for this package. Any valid composer "autoload" configuration.
Get a flattened array of autoload configurations that have a predictable pattern (PSR-0, PSR-4)
Returns contents of Composer manifest - or part there of.
Get the installed package version (from composer) and as fallback the version given by composer manifest.
No description
No description
No description
Brings the composer autoload configuration into an easy to use format for various parts of Flow.
Details
__construct(string $packageKey, string $composerName, string $packagePath, array $autoloadConfiguration = [])
Constructor
array
getClassFiles()
Returns the array of filenames of the class files
string
getPackageKey()
Returns the package key of this package.
string
getComposerName()
Returns the packages composer name
array
getNamespaces()
Returns array of all declared autoload namespaces contained in this package
string[]
getAutoloadTypes()
No description
string
getPackagePath()
Returns the full path to this package's main directory
array
getAutoloadPaths()
No description
array
getAutoloadConfiguration()
Get the autoload configuration for this package. Any valid composer "autoload" configuration.
array
getFlattenedAutoloadConfiguration()
Get a flattened array of autoload configurations that have a predictable pattern (PSR-0, PSR-4)
mixed
getComposerManifest(string $key = null)
Returns contents of Composer manifest - or part there of.
string
getInstalledVersion()
Get the installed package version (from composer) and as fallback the version given by composer manifest.
protected string
normalizeAutoloadPath(string $autoloadType, string $autoloadNamespace, string $autoloadPath)
No description
protected Generator
getClassesInNormalizedAutoloadPath(string $baseAutoloadPath, string $autoloadNamespace)
No description
protected bool
isPathAutoloadEntryPoint(string $path)
No description
protected void
explodeAutoloadConfiguration()
Brings the composer autoload configuration into an easy to use format for various parts of Flow.