-
-
Notifications
You must be signed in to change notification settings - Fork 63
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: #85759 - GeneralUtility::getHostName #1110
Comments
Just copy the method over |
Not worth it. |
Short question: Why is it not worth it? Because it is not used in the community? I would simply replace \TYPO3\CMS\Core\Utility\GeneralUtility::getHostname() with \TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv('HTTP_HOST') |
Such things should be noticed in |
Copying \TYPO3\CMS\Core\Utility\GeneralUtility::getHostname() with \TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv('HTTP_HOST') over is not reflecting the whole method body. But in practice i have came to the conclusion that it should be enough to migrate it to \TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv('HTTP_HOST'). Let´s reopen it. |
Deprecation: #85759 - GeneralUtility::getHostName
https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/9.4/Deprecation-85759-GeneralUtilitygetHostName.html
.. include:: ../../Includes.txt
=================================================
Deprecation: #85759 - GeneralUtility::getHostName
=================================================
See :issue:
85759
Description
===========
The method :php:
GeneralUtility::getHostName()
has been marked as deprecated and will be removed in TYPO3 v10.Impact
======
Calling the mentioned method will trigger a PHP :php:
E_USER_DEPRECATED
error.Affected Installations
======================
Third party code which accesses the method.
Migration
=========
No migration available.
.. index:: PHP-API, FullyScanned
The text was updated successfully, but these errors were encountered: