Posted by & filed under TYPO3.

Singletons can now be instantiated with t3lib_div::makeInstance, if they implement interface t3lib_singleton.

Singletons are classes that exist as one instance during execution. No matter how many times the class is instantiated, the same instance will be returned. This saves precious memory during execution.

More info:
RFC #9520: add a scheme to support singletons with t3lib_div::makeInstance

Leave a Reply

  • (will not be published)