Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation: #82254 - Deprecate $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'] #925

Closed
sabbelasichon opened this issue Nov 4, 2019 · 0 comments · Fixed by #1649
Closed

Comments

@sabbelasichon
Copy link
Owner

Deprecation: #82254 - Deprecate $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']

https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/9.0/Deprecation-82254-DeprecateGLOBALSTYPO3_CONF_VARSEXTextConf.html

.. include:: ../../Includes.txt

=============================================================================

Deprecation: #82254 - Deprecate $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']

=============================================================================

See :issue:82254

Description

===========

The extension configuration stored in :php:$GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'] has been

deprecated and replaced by a plain array in :php:$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']. A new

API has been introduced to retrieve extension configuration.

Affected Installations

======================

All extensions manually getting settings and unserializing them

from :php:$GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'].

Migration

=========

Use a new API to retrieve extension configuration, examples:

.. code-block:: php

// Retrieve a single key

$backendFavicon = (bool)GeneralUtility::makeInstance(ExtensionConfiguration::class)->get('backend', 'backendFavicon');



// Retrieve whole configuration

$backendConfiguration = GeneralUtility::makeInstance(ExtensionConfiguration::class)->get('backend');



// Fully qualified class names for usage in ext_localconf.php / ext_tables.php

$backendConfiguration = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(

    \TYPO3\CMS\Core\Configuration\ExtensionConfiguration::class

)->get('backend');

.. index:: LocalConfiguration, PHP-API, FullyScanned

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant