当前位置: 首页>>代码示例>>PHP>>正文


PHP Core::unregisterConfigurationProvider方法代码示例

本文整理汇总了PHP中FluidTYPO3\Flux\Core::unregisterConfigurationProvider方法的典型用法代码示例。如果您正苦于以下问题:PHP Core::unregisterConfigurationProvider方法的具体用法?PHP Core::unregisterConfigurationProvider怎么用?PHP Core::unregisterConfigurationProvider使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在FluidTYPO3\Flux\Core的用法示例。


在下文中一共展示了Core::unregisterConfigurationProvider方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: setup

 /**
  * Setup
  */
 public function setup()
 {
     $providers = Core::getRegisteredFlexFormProviders();
     if (TRUE === in_array('FluidTYPO3\\Flux\\Service\\FluxService', $providers)) {
         Core::unregisterConfigurationProvider('FluidTYPO3\\Flux\\Service\\FluxService');
     }
 }
开发者ID:JostBaron,项目名称:flux,代码行数:10,代码来源:FluxServiceTest.php

示例2: 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');
 }
开发者ID:chrmue01,项目名称:typo3-starter-kit,代码行数:13,代码来源:FluxServiceTest.php

示例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');
开发者ID:chrmue01,项目名称:typo3-starter-kit,代码行数:12,代码来源:ext_localconf.php

示例4: 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');
 }
开发者ID:fluidtypo3,项目名称:flux,代码行数:16,代码来源:PreviewTest.php

示例5: canUnregisterNotCurrentlyRegisteredProviders

 /**
  * @test
  */
 public function canUnregisterNotCurrentlyRegisteredProviders()
 {
     $fakeClass = 'MyFakeClass';
     Core::unregisterConfigurationProvider($fakeClass);
     core::registerConfigurationProvider($fakeClass);
     $this->assertNotContains($fakeClass, Core::getRegisteredFlexFormProviders());
 }
开发者ID:samuweiss,项目名称:TYPO3-Site,代码行数:10,代码来源:CoreTest.php

示例6: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\FluidTYPO3\Flux\Core::unregisterConfigurationProvider('Tx_Fed_Provider_Configuration_ContentObjectConfigurationProvider');
\FluidTYPO3\Flux\Core::registerConfigurationProvider('FluidTYPO3\\Fluidcontent\\Provider\\ContentProvider');
\TYPO3\CMS\Core\Utility\GeneralUtility::loadTCA('tt_content');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('Fluid Content', 'fluidcontent_content', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('fluidcontent') . 'ext_icon.gif'), 'CType');
//\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Fluid Content'); // Disabled temporarily: fluidcontent currently does not use TS configuration.
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tt_content', array('tx_fed_fcefile' => array('exclude' => 1, 'label' => 'LLL:EXT:fluidcontent/Resources/Private/Language/locallang.xml:tt_content.tx_fed_fcefile', 'config' => array('type' => 'user', 'userFunc' => 'FluidTYPO3\\Fluidcontent\\Backend\\ContentSelector->renderField'))), 1);
$GLOBALS['TCA']['tt_content']['types']['fluidcontent_content']['showitem'] = $GLOBALS['TCA']['tt_content']['types']['text']['showitem'];
// Remove bodytext RTE with TCA pointing to locallang file in xlf format
$GLOBALS['TCA']['tt_content']['types']['fluidcontent_content']['showitem'] = str_replace('bodytext;LLL:EXT:cms/locallang_ttc.xlf:bodytext_formlabel;;richtext:rte_transform[flag=rte_enabled|mode=ts_css],', '', $GLOBALS['TCA']['tt_content']['types']['fluidcontent_content']['showitem']);
$GLOBALS['TCA']['tt_content']['types']['fluidcontent_content']['showitem'] = str_replace('rte_enabled;LLL:EXT:cms/locallang_ttc.xlf:rte_enabled_formlabel,', '', $GLOBALS['TCA']['tt_content']['types']['fluidcontent_content']['showitem']);
// Remove bodytext RTE with TCA pointing to locallang file in xml format
$GLOBALS['TCA']['tt_content']['types']['fluidcontent_content']['showitem'] = str_replace('bodytext;LLL:EXT:cms/locallang_ttc.xml:bodytext_formlabel;;richtext:rte_transform[flag=rte_enabled|mode=ts_css],', '', $GLOBALS['TCA']['tt_content']['types']['fluidcontent_content']['showitem']);
$GLOBALS['TCA']['tt_content']['types']['fluidcontent_content']['showitem'] = str_replace('rte_enabled;LLL:EXT:cms/locallang_ttc.xml:rte_enabled_formlabel,', '', $GLOBALS['TCA']['tt_content']['types']['fluidcontent_content']['showitem']);
$GLOBALS['TCA']['tt_content']['ctrl']['typeicon_classes']['fluidcontent_content'] = 'apps-pagetree-root';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('tt_content', 'tx_fed_fcefile,pi_flexform', 'fluidcontent_content', 'after:header');
if ('BE' === TYPO3_MODE) {
    /** @var \TYPO3\CMS\Core\Cache\CacheManager $cacheManager */
    $cacheManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager')->get('TYPO3\\CMS\\Core\\Cache\\CacheManager');
    if (TRUE === $cacheManager->hasCache('fluidcontent') && TRUE === $cacheManager->getCache('fluidcontent')->has('pageTsConfig')) {
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig($cacheManager->getCache('fluidcontent')->get('pageTsConfig'));
    }
    unset($cacheManager);
}
开发者ID:samuweiss,项目名称:TYPO3-Site,代码行数:28,代码来源:ext_tables.php


注:本文中的FluidTYPO3\Flux\Core::unregisterConfigurationProvider方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。