workshop-gitlab-acceptance/localPackages/example_extension/ext_localconf.php
Daniel Siepmann e88fcf02b1
Add email delivery for testing purposes
In order to demonstrate mailhog integration into codeception.
Also refactor logic into signal / slot to not bloat controller.
2019-08-27 09:04:17 +02:00

51 lines
1.7 KiB
PHP

<?php
(function () {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Workshop.ExampleExtension',
'Address',
[
'Address' => 'index, edit, update'
],
[
'Address' => 'update'
],
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup(trim('
@import "EXT:example_extension/Configuration/TypoScript/*.typoscript"
'));
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('
mod {
wizards {
newContentElement {
wizardItems {
common {
show = *
elements {
exampleElement {
iconIdentifier = content-store
title = Example title
description = Example Description
tt_content_defValues {
CType = list
list_type = exampleextension_pluginkey
}
}
}
}
}
}
}
}
');
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class)->connect(
\Workshop\ExampleExtension\Controller\AddressController::class,
'addressUpdated',
\Workshop\ExampleExtension\Domain\Event\Address::class,
'updated'
);
})();