TYPO3
7.6
|
Protected Member Functions | |
downloadExtension (Extension $extension) | |
checkDependencies (Extension $extension) | |
setInExtensionRepository ($extensionKey) | |
copyDependencies (array $copyQueue) | |
uninstallDependenciesToBeUpdated (array $updateQueue) | |
installDependencies (array $installQueue) | |
downloadDependencies (array $downloadQueue) | |
emitWillInstallExtensionsSignal (array $installQueue) | |
emitHasInstalledExtensionSignal ($extensionKey) | |
getSignalSlotDispatcher () | |
Protected Attributes | |
$downloadQueue | |
$dependencyUtility | |
$installUtility | |
$extensionModelUtility | |
$downloadUtility | |
$automaticInstallationEnabled = true | |
$skipDependencyCheck = false | |
Service class for managing multiple step processes (dependencies for example)
Definition at line 25 of file ExtensionManagementService.php.
|
protected |
Check dependencies for an extension and its required extensions
Extension | $extension |
Definition at line 276 of file ExtensionManagementService.php.
Referenced by ExtensionManagementService\installExtension().
|
protected |
Copies locally provided extensions to typo3conf/ext
array | $copyQueue |
Definition at line 305 of file ExtensionManagementService.php.
References GeneralUtility\copyDirectory(), ExtensionManagementService\markExtensionForInstallation(), GeneralUtility\mkdir(), and Extension\returnAllowedInstallPaths().
Referenced by ExtensionManagementService\installExtension().
|
protected |
Download dependencies expects an array of extension objects to download
Extension[] | $downloadQueue |
Definition at line 364 of file ExtensionManagementService.php.
References ExtensionManagementService\markExtensionForInstallation().
Referenced by ExtensionManagementService\installExtension().
|
protected |
Download an extension
Extension | $extension |
Definition at line 264 of file ExtensionManagementService.php.
References ExtensionManagementService\downloadMainExtension(), Extension\getExtensionKey(), and ExtensionManagementService\setInExtensionRepository().
Referenced by ExtensionManagementService\installExtension().
downloadMainExtension | ( | Extension | $extension | ) |
Downloads the extension the user wants to install This is separated from downloading the dependencies as an extension is able to provide it's own dependencies
Extension | $extension |
Definition at line 401 of file ExtensionManagementService.php.
References AbstractDomainObject\getUid().
Referenced by ExtensionManagementService\downloadExtension().
|
protected |
string | $extensionKey |
Definition at line 421 of file ExtensionManagementService.php.
References ExtensionManagementService\getSignalSlotDispatcher().
Referenced by ExtensionManagementService\installDependencies().
|
protected |
array | $installQueue |
Definition at line 413 of file ExtensionManagementService.php.
References ExtensionManagementService\getSignalSlotDispatcher().
Referenced by ExtensionManagementService\installDependencies().
getAndResolveDependencies | ( | Extension | $extension | ) |
Get and resolve dependencies
Extension | $extension |
Definition at line 382 of file ExtensionManagementService.php.
getDependencyErrors | ( | ) |
Returns the unresolved dependency errors
Definition at line 219 of file ExtensionManagementService.php.
getExtension | ( | $extensionKey | ) |
string | $extensionKey |
\TYPO3\CMS\Extensionmanager\Exception\ExtensionManagerException |
Definition at line 229 of file ExtensionManagementService.php.
Referenced by ExtensionManagementService\markExtensionForInstallation().
|
protected |
Get the SignalSlot dispatcher
Definition at line 431 of file ExtensionManagementService.php.
References $signalSlotDispatcher, and GeneralUtility\makeInstance().
Referenced by ExtensionManagementService\emitHasInstalledExtensionSignal(), and ExtensionManagementService\emitWillInstallExtensionsSignal().
injectDependencyUtility | ( | \TYPO3\CMS\Extensionmanager\Utility\DependencyUtility | $dependencyUtility | ) |
\TYPO3\CMS\Extensionmanager\Utility\DependencyUtility | $dependencyUtility |
Definition at line 73 of file ExtensionManagementService.php.
References ExtensionManagementService\$dependencyUtility.
injectDownloadQueue | ( | \TYPO3\CMS\Extensionmanager\Domain\Model\DownloadQueue | $downloadQueue | ) |
\TYPO3\CMS\Extensionmanager\Domain\Model\DownloadQueue | $downloadQueue |
Definition at line 65 of file ExtensionManagementService.php.
References ExtensionManagementService\$downloadQueue.
injectDownloadUtility | ( | \TYPO3\CMS\Extensionmanager\Utility\DownloadUtility | $downloadUtility | ) |
\TYPO3\CMS\Extensionmanager\Utility\DownloadUtility | $downloadUtility |
Definition at line 97 of file ExtensionManagementService.php.
References ExtensionManagementService\$downloadUtility.
injectExtensionModelUtility | ( | \TYPO3\CMS\Extensionmanager\Utility\ExtensionModelUtility | $extensionModelUtility | ) |
\TYPO3\CMS\Extensionmanager\Utility\ExtensionModelUtility | $extensionModelUtility |
Definition at line 89 of file ExtensionManagementService.php.
References ExtensionManagementService\$extensionModelUtility.
injectInstallUtility | ( | \TYPO3\CMS\Extensionmanager\Utility\InstallUtility | $installUtility | ) |
\TYPO3\CMS\Extensionmanager\Utility\InstallUtility | $installUtility |
Definition at line 81 of file ExtensionManagementService.php.
References ExtensionManagementService\$installUtility.
|
protected |
Install dependent extensions
array | $installQueue |
Definition at line 340 of file ExtensionManagementService.php.
References ExtensionManagementService\emitHasInstalledExtensionSignal(), and ExtensionManagementService\emitWillInstallExtensionsSignal().
Referenced by ExtensionManagementService\installExtension().
installExtension | ( | Extension | $extension | ) |
Install the extension
Extension | $extension |
Definition at line 180 of file ExtensionManagementService.php.
References ExtensionManagementService\checkDependencies(), ExtensionManagementService\copyDependencies(), ExtensionManagementService\downloadDependencies(), ExtensionManagementService\downloadExtension(), ExtensionManagementService\installDependencies(), and ExtensionManagementService\uninstallDependenciesToBeUpdated().
isAvailable | ( | $extensionKey | ) |
Checks if an extension is available in the system
string | $extensionKey |
Definition at line 242 of file ExtensionManagementService.php.
markExtensionForCopy | ( | $extensionKey, | |
$sourceFolder | |||
) |
Mark an extension for copy
string | $extensionKey | |
string | $sourceFolder |
Definition at line 123 of file ExtensionManagementService.php.
markExtensionForDownload | ( | Extension | $extension | ) |
Mark an extension for download
Extension | $extension |
Definition at line 134 of file ExtensionManagementService.php.
markExtensionForInstallation | ( | $extensionKey | ) |
string | $extensionKey |
Definition at line 106 of file ExtensionManagementService.php.
References ExtensionManagementService\getExtension().
Referenced by ExtensionManagementService\copyDependencies(), and ExtensionManagementService\downloadDependencies().
markExtensionForUpdate | ( | Extension | $extension | ) |
Extension | $extension |
Definition at line 148 of file ExtensionManagementService.php.
reloadPackageInformation | ( | $extensionKey | ) |
string | $extensionKey |
\TYPO3\CMS\Core\Package\Exception\InvalidPackageStateException | if the package isn't available |
\TYPO3\CMS\Core\Package\Exception\InvalidPackageKeyException | if an invalid package key was passed |
\TYPO3\CMS\Core\Package\Exception\InvalidPackagePathException | if an invalid package path was passed |
\TYPO3\CMS\Core\Package\Exception\InvalidPackageManifestException | if no extension configuration file could be found |
Definition at line 254 of file ExtensionManagementService.php.
setAutomaticInstallationEnabled | ( | $automaticInstallationEnabled | ) |
bool | $automaticInstallationEnabled |
Definition at line 169 of file ExtensionManagementService.php.
References ExtensionManagementService\$automaticInstallationEnabled.
|
protected |
Sets the path to the repository in an extension (Initialisation/Extensions) depending on the extension that is currently installed
string | $extensionKey |
Definition at line 291 of file ExtensionManagementService.php.
References Extension\returnInstallPaths().
Referenced by ExtensionManagementService\downloadExtension().
setSkipDependencyCheck | ( | $skipDependencyCheck | ) |
Enables or disables the dependency check for system environment (PHP, TYPO3) before extension installation
bool | $skipDependencyCheck |
Definition at line 161 of file ExtensionManagementService.php.
References ExtensionManagementService\$skipDependencyCheck.
|
protected |
Uninstall extensions that will be updated This is not strictly necessary but cleaner all in all
Extension[] | $updateQueue |
Definition at line 324 of file ExtensionManagementService.php.
Referenced by ExtensionManagementService\installExtension().
|
protected |
Definition at line 55 of file ExtensionManagementService.php.
Referenced by ExtensionManagementService\setAutomaticInstallationEnabled().
|
protected |
Definition at line 35 of file ExtensionManagementService.php.
Referenced by ExtensionManagementService\injectDependencyUtility().
|
protected |
Definition at line 30 of file ExtensionManagementService.php.
Referenced by ExtensionManagementService\injectDownloadQueue().
|
protected |
Definition at line 50 of file ExtensionManagementService.php.
Referenced by ExtensionManagementService\injectDownloadUtility().
|
protected |
Definition at line 45 of file ExtensionManagementService.php.
Referenced by ExtensionManagementService\injectExtensionModelUtility().
|
protected |
Definition at line 40 of file ExtensionManagementService.php.
Referenced by ExtensionManagementService\injectInstallUtility().
|
protected |
Definition at line 60 of file ExtensionManagementService.php.
Referenced by ExtensionManagementService\setSkipDependencyCheck().