-
-
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: #97435 - Usage of SiteLanguageAwareTrait to denote site language awareness #3103
Labels
Comments
sabbelasichon
added a commit
that referenced
this issue
Oct 24, 2022
Just tried it with my extension |
I have done totally crap here. Sorry for that. Will be fixed in a minute. |
sabbelasichon
added a commit
that referenced
this issue
Nov 30, 2022
@spoonerWeb I have released version 1.0.6. Sorry for the inconvenience. I must have been drunk i guess. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Deprecation: #97435 - Usage of SiteLanguageAwareTrait to denote site language awareness
https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/12.0/Deprecation-97435-UsageOfSiteLanguageAwareTraitToDenoteSiteLanguageAwareness.html
.. include:: /Includes.rst.txt
=======================================================================================
Deprecation: #97435 - Usage of SiteLanguageAwareTrait to denote site language awareness
See :issue:
97435
Description
The :php:
TYPO3\CMS\Core\Site\SiteLanguageAwareTrait
should not be used asmeans to denote a class as aware of the site language anymore. Instead, the
:php:
TYPO3\CMS\Core\Site\SiteLanguageAwareInterface
should be implemented forthis purpose. The trait is an internal implementation and should not be used
in user land code.
Impact
If you are currently using the :php:
SiteLanguageAwareTrait
to denote a classas aware of the site language, you should implement the
:php:
SiteLanguageAwareInterface
instead.Affected Installations
All installations where the :php:
SiteLanguageAwareTrait
is used to denotea class as aware of the site language.
Migration
Change classes that use the :php:
SiteLanguageAwareTrait
but not thecorresponding interface to implement the interface. Replace the usage of the
trait with an own trait, or implement the interface methods directly in the
class.
Example before the migration:
.. code-block:: php
Example after the migration:
.. code-block:: php
.. index:: PHP-API, ext:core, NotScanned
The text was updated successfully, but these errors were encountered: