本文整理汇总了PHP中FluidTYPO3\Flux\Core::registerConfigurationProvider方法的典型用法代码示例。如果您正苦于以下问题:PHP Core::registerConfigurationProvider方法的具体用法?PHP Core::registerConfigurationProvider怎么用?PHP Core::registerConfigurationProvider使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FluidTYPO3\Flux\Core
的用法示例。
在下文中一共展示了Core::registerConfigurationProvider方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: throwsExceptionWhenResolvingInvalidConfigurationProviderInstances
/**
* @test
*/
public function throwsExceptionWhenResolvingInvalidConfigurationProviderInstances()
{
$instance = $this->createInstance();
$record = array('test' => 'test');
Core::registerConfigurationProvider('FluidTYPO3\\Flux\\Service\\FluxService');
$this->setExpectedException('RuntimeException', NULL, 1327173536);
$instance->flushCache();
$instance->resolveConfigurationProviders('tt_content', 'pi_flexform', $record);
Core::unregisterConfigurationProvider('FluidTYPO3\\Flux\\Service\\FluxService');
}
示例2: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('FluidTYPO3.Fluidcontent', 'Content', array('Content' => 'render'), array(), \TYPO3\CMS\Extbase\Utility\ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT);
\FluidTYPO3\Flux\Core::registerConfigurationProvider('FluidTYPO3\\Fluidcontent\\Provider\\ContentProvider');
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms']['db_new_content_el']['wizardItemsHook']['fluidcontent'] = 'FluidTYPO3\\Fluidcontent\\Hooks\\WizardItemsHookSubscriber';
if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['fluidcontent'])) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['fluidcontent'] = array('groups' => array('system'));
}
示例3: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
\FluidTYPO3\Flux\Core::unregisterConfigurationProvider('Tx_Fed_Provider_Configuration_PageConfigurationProvider');
\FluidTYPO3\Flux\Core::registerConfigurationProvider('FluidTYPO3\\Fluidpages\\Provider\\PageProvider');
\FluidTYPO3\Flux\Core::addStaticTypoScript('EXT:fluidpages/Configuration/TypoScript/');
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin($_EXTKEY, 'Page', array('Page' => 'render,error'), array(), \TYPO3\CMS\Extbase\Utility\ExtensionUtility::PLUGIN_TYPE_PLUGIN);
$GLOBALS['TYPO3_CONF_VARS']['FE']['addRootLineFields'] .= ($GLOBALS['TYPO3_CONF_VARS']['FE']['addRootLineFields'] == '' ? '' : ',') . 'tx_fed_page_controller_action,tx_fed_page_controller_action_sub,tx_fed_page_flexform,tx_fed_page_flexform_sub,';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects']['TYPO3\\CMS\\Backend\\View\\BackendLayoutView'] = array('className' => 'FluidTYPO3\\Fluidpages\\Override\\Backend\\View\\BackendLayoutView');
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects']['TYPO3\\CMS\\Backend\\View\\PageLayoutView'] = array('className' => 'FluidTYPO3\\Fluidpages\\Override\\Backend\\View\\PageLayoutView');
示例4: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('FluidTYPO3.Fluidcontent', 'Content', array('Content' => 'render'), array(), \TYPO3\CMS\Extbase\Utility\ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT);
\FluidTYPO3\Flux\Core::registerConfigurationProvider('FluidTYPO3\\Fluidcontent\\Provider\\ContentProvider');
\FluidTYPO3\Flux\Core::registerConfigurationProvider('FluidTYPO3\\Fluidcontent\\Provider\\BackendUserGroupProvider');
if ('BE' === TYPO3_MODE) {
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms']['db_new_content_el']['wizardItemsHook']['fluidcontent'] = 'FluidTYPO3\\Fluidcontent\\Hooks\\WizardItemsHookSubscriber';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauthgroup.php']['fetchGroups_postProcessing']['fluidcontent'] = 'FluidTYPO3\\Fluidcontent\\Hooks\\GroupAccessListPostProcessor->addAccessLists';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['extTablesInclusion-PostProcessing']['fluidcontent'] = 'FluidTYPO3\\Fluidcontent\\Backend\\TableConfigurationPostProcessor';
}
if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['fluidcontent'])) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['fluidcontent'] = array('groups' => array('system'));
}
示例5: callUserFunction
/**
* @param string $function
* @param mixed $caller
*/
protected function callUserFunction($function, $caller)
{
$drawItem = TRUE;
$headerContent = '';
$itemContent = '';
$row = Records::$contentRecordWithoutParentAndWithoutChildren;
$row['pi_flexform'] = Xml::SIMPLE_FLEXFORM_SOURCE_DEFAULT_SHEET_ONE_FIELD;
Core::registerConfigurationProvider('FluidTYPO3\\Flux\\Tests\\Fixtures\\Classes\\DummyConfigurationProvider');
$instance = $this->getMock($function, array('attachAssets'));
$instance->preProcess($caller, $drawItem, $headerContent, $itemContent, $row);
Core::unregisterConfigurationProvider('FluidTYPO3\\Flux\\Tests\\Fixtures\\Classes\\DummyConfigurationProvider');
}
示例6: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['fluidpages']['setup'] = unserialize($_EXTCONF);
if (FALSE === isset($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['fluidpages']['setup']['autoload']) || TRUE === (bool) $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['fluidpages']['setup']['autoload']) {
\FluidTYPO3\Flux\Core::addStaticTypoScript('EXT:fluidpages/Configuration/TypoScript/');
}
\FluidTYPO3\Flux\Core::registerConfigurationProvider('FluidTYPO3\\Fluidpages\\Provider\\PageProvider');
\FluidTYPO3\Flux\Core::registerConfigurationProvider('FluidTYPO3\\Fluidpages\\Provider\\SubPageProvider');
\FluidTYPO3\Flux\Core::registerConfigurationProvider('FluidTYPO3\\Fluidpages\\Provider\\PageLanguageOverlayProvider');
\FluidTYPO3\Flux\Core::registerConfigurationProvider('FluidTYPO3\\Fluidpages\\Provider\\SubPageLanguageOverlayProvider');
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('FluidTYPO3.Fluidpages', 'Page', ['Page' => 'render,error'], [], \TYPO3\CMS\Extbase\Utility\ExtensionUtility::PLUGIN_TYPE_PLUGIN);
$GLOBALS['TYPO3_CONF_VARS']['FE']['addRootLineFields'] .= ($GLOBALS['TYPO3_CONF_VARS']['FE']['addRootLineFields'] == '' ? '' : ',') . 'tx_fed_page_controller_action,tx_fed_page_controller_action_sub,tx_fed_page_flexform,tx_fed_page_flexform_sub,';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['BackendLayoutDataProvider']['fluidpages'] = 'FluidTYPO3\\Fluidpages\\Backend\\BackendLayoutDataProvider';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/db_layout.php']['drawHeaderHook'][] = \FluidTYPO3\Fluidpages\Hooks\PagePreviewRenderer::class . '->render';
示例7: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
// Use dashboard instead of the default page module
//\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('
// setup.override.startModule = moox_MooxCoreDashboard
// mod.moox_MooxCoreDashboard.sideBarEnable = 0
// ');
if (FALSE === isset($GLOBALS['TYPO3_CONF_VARS']['FE']['contentRenderingTemplates'])) {
\TYPO3\CMS\Core\Utility\GeneralUtility::sysLog('MooxCore requires an additional configuration file in typo3conf/AdditionalConfiguration.php - ' . 'you can have MooxCore generate this file for you from the extension manager by running the MooxCore update script. A dummy ' . 'has been created, but you will only be able to render content (not plugins!) until the file is created', 'moox_core', \TYPO3\CMS\Core\Utility\GeneralUtility::SYSLOG_SEVERITY_WARNING);
$GLOBALS['TYPO3_CONF_VARS']['FE']['contentRenderingTemplates'] = array('mooxcore/Configuration/TypoScript/');
}
$GLOBALS['TYPO3_CONF_VARS']['DCNGmbH.MooxCore']['types'] = array('header', 'text', 'image', 'textpic', 'bullets', 'uploads', 'table', 'media', 'mailform', 'search', 'menu', 'shortcut', 'div', 'html', 'default');
\FluidTYPO3\Flux\Core::registerConfigurationProvider('DCNGmbH\\MooxCore\\Provider\\CoreContentProvider');
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms']['db_new_content_el']['wizardItemsHook']['moox_core'] = 'DCNGmbH\\MooxCore\\Hooks\\WizardItemsHookSubscriber';
// Prepare a global variants registration array indexed by CType value.
// To add your own, do fx: $GLOBALS['TYPO3_CONF_VARS']['DCNGmbH.MooxCore']['variants']['textpic'][] = 'myextensionkey';
$GLOBALS['TYPO3_CONF_VARS']['DCNGmbH.MooxCore']['variants'] = array_combine(array_values($GLOBALS['TYPO3_CONF_VARS']['DCNGmbH.MooxCore']['types']), array_fill(0, count($GLOBALS['TYPO3_CONF_VARS']['DCNGmbH.MooxCore']['types']), array()));
$types = count($GLOBALS['TYPO3_CONF_VARS']['DCNGmbH.MooxCore']['types']);
for ($i = 0; $i < $types; $i++) {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('DCNGmbH.MooxCore', ucfirst($GLOBALS['TYPO3_CONF_VARS']['DCNGmbH.MooxCore']['types'][$i]), array('CoreContent' => 'render,error'), array());
}
unset($types, $i);
// Include new content elements to modWizards
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:moox_core/Configuration/PageTS/modWizards.ts">');
// If the form extension is loaded, then include the mailform element to modWizards
if (TRUE === \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('form')) {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:moox_core/Configuration/PageTS/modWizardsMailform.ts">');
}
示例8: canRegisterAndUnregisterProviderClassName
/**
* @test
*/
public function canRegisterAndUnregisterProviderClassName()
{
$providerClassName = 'FluidTYPO3\\Flux\\Provider\\Provider';
Core::registerConfigurationProvider($providerClassName);
$registered = Core::getRegisteredFlexFormProviders();
$this->assertContains($providerClassName, $registered);
Core::unregisterConfigurationProvider($providerClassName);
$registered = Core::getRegisteredFlexFormProviders();
$this->assertNotContains($providerClassName, $registered);
}
示例9: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('Mia3.Fluidmailforms', 'Form', array('Form' => 'render'), array(), \TYPO3\CMS\Extbase\Utility\ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT);
\FluidTYPO3\Flux\Core::registerConfigurationProvider('Mia3\\Fluidmailforms\\Provider\\FormProvider');