Project

General

Profile

Actions

Feature #61306

closed

Having a hook at end of extension install

Added by Matthias Toscanelli about 10 years ago. Updated about 6 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 #1

Updated by Markus Klein about 10 years ago

Can you push this as a patch to Gerrit?
Should be fine for 6.2 as well.
Tell me, if you need help.

Actions #2

Updated by Matthias Toscanelli about 10 years ago

I'm not sure on how to proceed to send a patch.
Is there documentation on this?

Actions #4

Updated by Gerrit Code Review over 9 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/38010

Actions #5

Updated by Gerrit Code Review over 9 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/38010

Actions #6

Updated by Nicole Cordes over 9 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #7

Updated by Matthias Toscanelli over 9 years ago

Great!
Thanks a lot!

Actions #8

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF