DEPRECATION WARNING
This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.
Resetting the service¶
Services are singletons. Existing instances are stored in a global
array. This may have the undesirable effect
that the instance you get is not brand new and shiny, but loaded with
data from its previous call. To avoid that, whenever an instance is
recalled, TYPO3 CMS will call the reset()
method of the service, where any
necessary clean up can be performed.
If you think this is needed for the particular service that you are
developing, then don’t forget to implement the reset()
method.