本文整理汇总了PHP中TYPO3\CMS\Core\Utility\ExtensionManagementUtility::loadExtLocalconf方法的典型用法代码示例。如果您正苦于以下问题:PHP ExtensionManagementUtility::loadExtLocalconf方法的具体用法?PHP ExtensionManagementUtility::loadExtLocalconf怎么用?PHP ExtensionManagementUtility::loadExtLocalconf使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TYPO3\CMS\Core\Utility\ExtensionManagementUtility
的用法示例。
在下文中一共展示了ExtensionManagementUtility::loadExtLocalconf方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: loadExtTablesDoesNotReadFromCacheIfCachingIsDenied
/**
* @test
*/
public function loadExtTablesDoesNotReadFromCacheIfCachingIsDenied()
{
/** @var CacheManager|\PHPUnit_Framework_MockObject_MockObject $mockCacheManager */
$mockCacheManager = $this->getMock(CacheManager::class, array('getCache'));
$mockCacheManager->expects($this->never())->method('getCache');
ExtensionManagementUtilityAccessibleProxy::setCacheManager($mockCacheManager);
$GLOBALS['TYPO3_LOADED_EXT'] = new LoadedExtensionsArray($this->createMockPackageManagerWithMockPackage($this->getUniqueId()));
ExtensionManagementUtility::loadExtLocalconf(FALSE);
}
示例2: loadTypo3LoadedExtAndExtLocalconf
/**
* Load ext_localconf of extensions
*
* @param bool $allowCaching
* @return Bootstrap
* @internal This is not a public API method, do not use in own extensions
*/
public function loadTypo3LoadedExtAndExtLocalconf($allowCaching = true)
{
ExtensionManagementUtility::loadExtLocalconf($allowCaching);
return $this;
}
示例3: reloadCaches
/**
* Reload Cache files and Typo3LoadedExtensions
*
* @return void
*/
public function reloadCaches()
{
\TYPO3\CMS\Core\Utility\OpcodeCacheUtility::clearAllActive();
// Reload class aliases defined in Migrations/Code/ClassAliasMap.php
\TYPO3\CMS\Core\Core\Bootstrap::getInstance()->getEarlyInstance('TYPO3\\CMS\\Core\\Core\\ClassLoader')->setPackages($this->packageManager->getActivePackages());
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::loadExtLocalconf(FALSE);
\TYPO3\CMS\Core\Core\Bootstrap::getInstance()->loadExtensionTables(FALSE);
}
示例4: loadExtTablesDoesNotReadFromCacheIfCachingIsDenied
/**
* @test
*/
public function loadExtTablesDoesNotReadFromCacheIfCachingIsDenied()
{
$mockCacheManager = $this->getMock('TYPO3\\CMS\\Core\\Cache\\CacheManager', array('getCache'));
$mockCacheManager->expects($this->never())->method('getCache');
ExtensionManagementUtilityAccessibleProxy::setCacheManager($mockCacheManager);
$GLOBALS['TYPO3_LOADED_EXT'] = new \TYPO3\CMS\Core\Compatibility\LoadedExtensionsArray($this->createMockPackageManagerWithMockPackage($this->getUniqueId()));
ExtensionManagementUtility::loadExtLocalconf(FALSE);
}
示例5: loadAdditionalConfigurationFromExtensions
/**
* Load extension configuration files (ext_localconf.php)
*
* The ext_localconf.php files in extensions are meant to make changes
* to the global $TYPO3_CONF_VARS configuration array.
*
* @param boolean $allowCaching
* @return \TYPO3\CMS\Core\Core\Bootstrap
*/
protected function loadAdditionalConfigurationFromExtensions($allowCaching = TRUE)
{
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::loadExtLocalconf($allowCaching);
return $this;
}
示例6: initializeExtensionConfiguration
/**
* @param ConsoleBootstrap $bootstrap
*/
public static function initializeExtensionConfiguration(ConsoleBootstrap $bootstrap)
{
// Manual load GlobalDebugFunctions.php for TYPO3 CMS <= 7.3
if (file_exists(PATH_site . 'typo3/sysext/core/Classes/Core/GlobalDebugFunctions.php')) {
require_once PATH_site . 'typo3/sysext/core/Classes/Core/GlobalDebugFunctions.php';
}
ExtensionManagementUtility::loadExtLocalconf();
$bootstrap->applyAdditionalConfigurationSettings();
}
示例7: initializeExtensionConfiguration
/**
* @param ConsoleBootstrap $bootstrap
*/
public static function initializeExtensionConfiguration(ConsoleBootstrap $bootstrap)
{
require_once PATH_site . 'typo3/sysext/core/Classes/Core/GlobalDebugFunctions.php';
ExtensionManagementUtility::loadExtLocalconf();
$bootstrap->applyAdditionalConfigurationSettings();
}
示例8: reloadCaches
/**
* Reload Cache files and Typo3LoadedExtensions
*
* @return void
*/
public function reloadCaches()
{
GeneralUtility::makeInstance(OpcodeCacheService::class)->clearAllActive();
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::loadExtLocalconf(FALSE);
\TYPO3\CMS\Core\Core\Bootstrap::getInstance()->loadExtensionTables(FALSE);
}
示例9: reloadCaches
/**
* Reload Cache files and Typo3LoadedExtensions
*
* @return void
*/
public function reloadCaches()
{
$this->reloadOpcache();
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::loadExtLocalconf(false);
\TYPO3\CMS\Core\Core\Bootstrap::getInstance()->loadExtensionTables(false);
}
示例10: reloadCaches
/**
* Reload Cache files and Typo3LoadedExtensions
*
* @return void
*/
public function reloadCaches()
{
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::loadExtLocalconf(FALSE);
\TYPO3\CMS\Core\Core\Bootstrap::getInstance()->loadExtensionTables(FALSE);
}
示例11: loadExtTablesDoesNotReadFromCacheIfCachingIsDenied
/**
* @test
*/
public function loadExtTablesDoesNotReadFromCacheIfCachingIsDenied()
{
$GLOBALS['typo3CacheManager'] = $this->getMock('TYPO3\\CMS\\Core\\Cache\\CacheManager', array('getCache'));
$GLOBALS['typo3CacheManager']->expects($this->never())->method('getCache');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::loadExtLocalconf(FALSE);
}