![]() |
TYPO3
7.6
|
Public Member Functions | |
__construct (PackageManager $packageManager, $packageKey, $packagePath) | |
isPartOfFactoryDefault () | |
isPartOfMinimalUsableSystem () | |
getPackageKey () | |
isProtected () | |
setProtected ($protected) | |
getPackagePath () | |
getPackageMetaData () | |
getPackageReplacementKeys () | |
getValueFromComposerManifest ($key=null) | |
__sleep () | |
__wakeup () | |
Protected Member Functions | |
loadFlagsFromComposerManifest () | |
Protected Attributes | |
$extensionManagerConfiguration = array() | |
$classAliases | |
$partOfFactoryDefault = false | |
$partOfMinimalUsableSystem = false | |
$packageKey | |
$packagePath | |
$protected = false | |
$composerManifest | |
$packageMetaData | |
$packageManager | |
Additional Inherited Members | |
![]() | |
const | PATTERN_MATCH_PACKAGEKEY = '/^[a-z0-9]+\.(?:[a-z0-9][\.a-z0-9]*)+$/i' |
const | PATTERN_MATCH_EXTENSIONKEY = '/^[0-9a-z_-]+$/i' |
A Package representing the details of an extension and/or a composer package Adapted from FLOW for TYPO3 CMS
Definition at line 23 of file Package.php.
__construct | ( | PackageManager | $packageManager, |
$packageKey, | |||
$packagePath | |||
) |
Constructor
PackageManager | $packageManager | the package manager which knows this package |
string | $packageKey | Key of this package |
string | $packagePath | Absolute path to the location of the package's composer manifest |
Exception\InvalidPackageKeyException | if an invalid package key was passed |
Exception\InvalidPackagePathException | if an invalid package path was passed |
Exception\InvalidPackageManifestException | if no composer manifest file could be found |
Definition at line 95 of file Package.php.
References Package\$packageKey, Package\$packageManager, Package\$packagePath, PackageManager\getComposerManifest(), PackageManager\isPackageKeyValid(), and Package\loadFlagsFromComposerManifest().
__sleep | ( | ) |
The package caching serializes package objects. The package manager instance may not be serialized as a fresh instance is created upon every request.
This method will be removed once the package is released of the package manager dependency.
Definition at line 273 of file Package.php.
__wakeup | ( | ) |
The package caching deserializes package objects. A fresh package manager instance has to be set during bootstrapping.
This method will be removed once the package is released of the package manager dependency.
Definition at line 290 of file Package.php.
References $GLOBALS.
getPackageKey | ( | ) |
Returns the package key of this package.
Implements PackageInterface.
Definition at line 153 of file Package.php.
getPackageMetaData | ( | ) |
Returns the package meta data object of this package.
Implements PackageInterface.
Definition at line 197 of file Package.php.
getPackagePath | ( | ) |
Returns the full path to this package's main directory
Implements PackageInterface.
Definition at line 187 of file Package.php.
getPackageReplacementKeys | ( | ) |
Returns an array of packages this package replaces
Implements PackageInterface.
Definition at line 234 of file Package.php.
getValueFromComposerManifest | ( | $key = null | ) |
Returns contents of Composer manifest - or part there of if a key is given.
string | $key | Optional. Only return the part of the manifest indexed by 'key' |
Implements PackageInterface.
Definition at line 247 of file Package.php.
Referenced by Package\loadFlagsFromComposerManifest().
isPartOfFactoryDefault | ( | ) |
isPartOfMinimalUsableSystem | ( | ) |
isProtected | ( | ) |
Tells if this package is protected and therefore cannot be deactivated or deleted
Implements PackageInterface.
Definition at line 164 of file Package.php.
|
protected |
Loads package management related flags from the "extra:typo3/cms:Package" section of extensions composer.json files into local properties
Definition at line 119 of file Package.php.
References Package\getValueFromComposerManifest().
Referenced by Package\__construct().
setProtected | ( | $protected | ) |
Sets the protection flag of the package
bool | $protected | TRUE if the package should be protected, otherwise FALSE |
Implements PackageInterface.
Definition at line 176 of file Package.php.
|
protected |
Definition at line 33 of file Package.php.
|
protected |
Definition at line 72 of file Package.php.
|
protected |
Definition at line 28 of file Package.php.
|
protected |
Definition at line 55 of file Package.php.
Referenced by Package\__construct().
|
protected |
Definition at line 83 of file Package.php.
Referenced by Package\__construct().
|
protected |
Definition at line 78 of file Package.php.
|
protected |
Definition at line 61 of file Package.php.
Referenced by Package\__construct().
|
protected |
Definition at line 41 of file Package.php.
|
protected |
Definition at line 49 of file Package.php.
|
protected |
Definition at line 67 of file Package.php.