<?php
defined('TYPO3_MODE') || die();

/***************
 * Add default RTE configuration
 */
$GLOBALS['TYPO3_CONF_VARS']['RTE']['Presets']['muehlherr_sitepackage'] = 'EXT:muehlherr_sitepackage/Configuration/RTE/Default.yaml';

/***************
 * PageTS
 */
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:muehlherr_sitepackage/Configuration/TsConfig/Page/All.tsconfig">');


// UserTS
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:muehlherr_sitepackage/Configuration/TsConfig/User.tsconfig">');


call_user_func(function () {
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup(
        trim('
	        module.tx_form {
		        settings {
		            yamlConfigurations {
			            4194 = EXT:muehlherr_sitepackage/Configuration/Forms.yaml
		            }
		        }
	        }
	    ')
    );
});
