‪TYPO3CMS  10.4
SlotReplacement.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
23 use ‪TYPO3\CMS\Extbase\SignalSlot\Dispatcher as SignalSlotDispatcher;
31 
40 {
44  protected ‪$signalSlotDispatcher;
45 
46  public function ‪__construct(SignalSlotDispatcher ‪$signalSlotDispatcher)
47  {
48  $this->signalSlotDispatcher = ‪$signalSlotDispatcher;
49  }
50 
52  {
53  $this->signalSlotDispatcher->dispatch(
54  InstallUtility::class,
55  'afterExtensionInstall',
56  [
57  $event->‪getPackageKey(),
58  $event->‪getEmitter()
59  ]
60  );
61  }
62 
64  {
65  $this->signalSlotDispatcher->dispatch(
66  InstallUtility::class,
67  'afterExtensionUninstall',
68  [
69  $event->‪getPackageKey(),
70  $event->‪getEmitter()
71  ]
72  );
73  }
74 
76  {
77  $this->signalSlotDispatcher->dispatch(
78  InstallUtility::class,
79  'afterExtensionT3DImport',
80  [
81  $event->‪getImportFileName(),
82  $event->‪getImportResult(),
83  $event->‪getEmitter()
84  ]
85  );
86  }
87 
89  {
90  $this->signalSlotDispatcher->dispatch(
91  InstallUtility::class,
92  'afterExtensionStaticSqlImport',
93  [
94  $event->‪getSqlFileName(),
95  $event->‪getEmitter()
96  ]
97  );
98  }
99 
101  {
102  $this->signalSlotDispatcher->dispatch(
103  InstallUtility::class,
104  'afterExtensionFileImport',
105  [
107  $event->‪getEmitter()
108  ]
109  );
110  }
111 
113  {
114  $this->signalSlotDispatcher->dispatch(
115  ExtensionManagementService::class,
116  'willInstallExtensions',
117  [
118  $event->‪getPackageKeys()
119  ]
120  );
121  }
122 
124  {
125  $actions = $event->‪getActions();
126  $this->signalSlotDispatcher->dispatch(
127  ProcessAvailableActionsViewHelper::class,
128  'processActions',
129  [
130  $event->‪getPackageData(),
131  &$actions,
132  ]
133  );
134  $event->‪setActions($actions);
135  }
136 }
‪TYPO3\CMS\Extensionmanager\Event\AfterExtensionStaticDatabaseContentHasBeenImportedEvent
Definition: AfterExtensionStaticDatabaseContentHasBeenImportedEvent.php:26
‪TYPO3\CMS\Core\Package\Event\AfterPackageDeactivationEvent\getPackageKey
‪getPackageKey()
Definition: AfterPackageDeactivationEvent.php:44
‪TYPO3\CMS\Extensionmanager\ViewHelpers\ProcessAvailableActionsViewHelper
Definition: ProcessAvailableActionsViewHelper.php:28
‪TYPO3\CMS\Extensionmanager\Event\AfterExtensionStaticDatabaseContentHasBeenImportedEvent\getSqlFileName
‪getSqlFileName()
Definition: AfterExtensionStaticDatabaseContentHasBeenImportedEvent.php:51
‪TYPO3\CMS\Extensionmanager\Compatibility\SlotReplacement\$signalSlotDispatcher
‪SignalSlotDispatcher $signalSlotDispatcher
Definition: SlotReplacement.php:43
‪TYPO3\CMS\Extensionmanager\Event\AfterExtensionDatabaseContentHasBeenImportedEvent\getEmitter
‪getEmitter()
Definition: AfterExtensionDatabaseContentHasBeenImportedEvent.php:66
‪TYPO3\CMS\Extensionmanager\Event\AfterExtensionDatabaseContentHasBeenImportedEvent
Definition: AfterExtensionDatabaseContentHasBeenImportedEvent.php:26
‪TYPO3\CMS\Extensionmanager\Compatibility\SlotReplacement\afterExtensionUninstallSlot
‪afterExtensionUninstallSlot(AfterPackageDeactivationEvent $event)
Definition: SlotReplacement.php:62
‪TYPO3\CMS\Extensionmanager\Compatibility\SlotReplacement\emitWillInstallExtensionsSignal
‪emitWillInstallExtensionsSignal(BeforePackageActivationEvent $event)
Definition: SlotReplacement.php:111
‪TYPO3\CMS\Extensionmanager\Utility\InstallUtility
Definition: InstallUtility.php:55
‪TYPO3\CMS\Extensionmanager\Event\AfterExtensionFilesHaveBeenImportedEvent
Definition: AfterExtensionFilesHaveBeenImportedEvent.php:26
‪TYPO3\CMS\Extensionmanager\Event\AvailableActionsForExtensionEvent\getActions
‪getActions()
Definition: AvailableActionsForExtensionEvent.php:54
‪TYPO3\CMS\Extensionmanager\Compatibility
Definition: SlotReplacement.php:18
‪TYPO3\CMS\Core\Package\Event\AfterPackageActivationEvent\getPackageKey
‪getPackageKey()
Definition: AfterPackageActivationEvent.php:44
‪TYPO3\CMS\Extensionmanager\Event\AvailableActionsForExtensionEvent
Definition: AvailableActionsForExtensionEvent.php:24
‪TYPO3\CMS\Extensionmanager\Event\AvailableActionsForExtensionEvent\setActions
‪setActions(array $actions)
Definition: AvailableActionsForExtensionEvent.php:64
‪TYPO3\CMS\Extensionmanager\Compatibility\SlotReplacement\emitAfterExtensionT3DImportSignal
‪emitAfterExtensionT3DImportSignal(AfterExtensionDatabaseContentHasBeenImportedEvent $event)
Definition: SlotReplacement.php:74
‪TYPO3\CMS\Core\Package\Event\AfterPackageDeactivationEvent\getEmitter
‪getEmitter()
Definition: AfterPackageDeactivationEvent.php:54
‪TYPO3\CMS\Core\Package\Event\AfterPackageActivationEvent
Definition: AfterPackageActivationEvent.php:24
‪TYPO3\CMS\Extensionmanager\Event\AvailableActionsForExtensionEvent\getPackageData
‪getPackageData()
Definition: AvailableActionsForExtensionEvent.php:49
‪TYPO3\CMS\Extensionmanager\Event\AfterExtensionDatabaseContentHasBeenImportedEvent\getImportFileName
‪getImportFileName()
Definition: AfterExtensionDatabaseContentHasBeenImportedEvent.php:56
‪TYPO3\CMS\Extensionmanager\Compatibility\SlotReplacement\emitAfterExtensionFileImportSignal
‪emitAfterExtensionFileImportSignal(AfterExtensionFilesHaveBeenImportedEvent $event)
Definition: SlotReplacement.php:99
‪TYPO3\CMS\Extensionmanager\Compatibility\SlotReplacement\emitProcessActionsSignal
‪emitProcessActionsSignal(AvailableActionsForExtensionEvent $event)
Definition: SlotReplacement.php:122
‪TYPO3\CMS\Extensionmanager\Compatibility\SlotReplacement
Definition: SlotReplacement.php:40
‪TYPO3\CMS\Extensionmanager\Service\ExtensionManagementService
Definition: ExtensionManagementService.php:33
‪TYPO3\CMS\Extensionmanager\Event\AfterExtensionFilesHaveBeenImportedEvent\getDestinationAbsolutePath
‪getDestinationAbsolutePath()
Definition: AfterExtensionFilesHaveBeenImportedEvent.php:51
‪TYPO3\CMS\Core\Package\Event\AfterPackageDeactivationEvent
Definition: AfterPackageDeactivationEvent.php:24
‪TYPO3\CMS\Extensionmanager\Compatibility\SlotReplacement\emitAfterExtensionStaticSqlImportSignal
‪emitAfterExtensionStaticSqlImportSignal(AfterExtensionStaticDatabaseContentHasBeenImportedEvent $event)
Definition: SlotReplacement.php:87
‪TYPO3\CMS\Core\Package\Event\AfterPackageActivationEvent\getEmitter
‪getEmitter()
Definition: AfterPackageActivationEvent.php:54
‪TYPO3\CMS\Extensionmanager\Compatibility\SlotReplacement\__construct
‪__construct(SignalSlotDispatcher $signalSlotDispatcher)
Definition: SlotReplacement.php:45
‪TYPO3\CMS\Core\Package\Event\BeforePackageActivationEvent\getPackageKeys
‪getPackageKeys()
Definition: BeforePackageActivationEvent.php:34
‪TYPO3\CMS\Extensionmanager\Event\AfterExtensionDatabaseContentHasBeenImportedEvent\getImportResult
‪getImportResult()
Definition: AfterExtensionDatabaseContentHasBeenImportedEvent.php:61
‪TYPO3\CMS\Extensionmanager\Event\AfterExtensionFilesHaveBeenImportedEvent\getEmitter
‪getEmitter()
Definition: AfterExtensionFilesHaveBeenImportedEvent.php:56
‪TYPO3\CMS\Extensionmanager\Compatibility\SlotReplacement\afterExtensionInstallSlot
‪afterExtensionInstallSlot(AfterPackageActivationEvent $event)
Definition: SlotReplacement.php:50
‪TYPO3\CMS\Core\Package\Event\BeforePackageActivationEvent
Definition: BeforePackageActivationEvent.php:24
‪TYPO3\CMS\Extensionmanager\Event\AfterExtensionStaticDatabaseContentHasBeenImportedEvent\getEmitter
‪getEmitter()
Definition: AfterExtensionStaticDatabaseContentHasBeenImportedEvent.php:56
‪TYPO3\CMS\Extbase\SignalSlot\Dispatcher
Definition: Dispatcher.php:126