Project

General

Profile

Actions

Feature #61306

closed

Having a hook at end of extension install

Added by Matthias Toscanelli over 9 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2014-09-02
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

It would be great to have a hook call at end of extension install.

This could be used for:
  • Configuring a distribution installation (like renaming some imported file in fileadmin)
  • Append some file to architecture out of "fileadmin/"
  • Conditional stuff
  • ...

typo3/sysext/extensionmanager/Classes/Utility/InstallUtility.php (line 115)

if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/sysext/extensionmanager/Classes/Utility/InstallUtility.php']['InstallUtility-PostInstall'])) {
        $_params = array('extensionKey' => $extensionKey, 'pObj' => &$this);
        foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/sysext/extensionmanager/Classes/Utility/InstallUtility.php']['InstallUtility-PostInstall'] as $_funcRef) {
                \TYPO3\CMS\Core\Utility\GeneralUtility::callUserFunction($_funcRef,$_params, $this);
        }
}


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #65848: Hooks/Signals cannot be used during extension installClosed2015-03-19

Actions
Actions

Also available in: Atom PDF