TYPO3 Forger
  • Dashboard
  • Get involved
  • Reviews
    Overview Ready for review Work in progress Needs action Needs review Needs verification Needs rebase Negative votes Reviewed and verified Ready to merge
  • Issues
    Stale issues Possible duplicates By category By month
  • Sprints
    Overview Initiatives TYPO3 Core Review board
  • Tools
    Backports ReST helper
  • Help
  • Search
  • Login
Esc

Words find the open ones, a number the issue and the change with it.

  1. Issues
  2. #50615
Issue Task Closed

#50615Use magic __CLASS__ in getInstance()-methods

Stefan Neufeind 08/01/13, 03:23 updated 10/02/18, 12:12

Open in Forge Comment in Forge

Description

Some classes contain static getInstance()-methods that return
an instance of themselves. Instead of using the correct namespace
and classname everywhere, just use CLASS.

Reviews 3

  • TYPO3_6-0 22887[TASK] Use magic __CLASS__ in getInstance()-methods Resolves this issue Merged Wouter Wolters CR +2 V +2 → 6.2, 6.1, 6.0 Easy +7 −7 08/06/13, 17:38
  • TYPO3_6-1 22886[TASK] Use magic __CLASS__ in getInstance()-methods Resolves this issue Merged Wouter Wolters CR +2 V +2 → 6.2, 6.1, 6.0 Easy +4 −4 08/06/13, 17:38
  • main 22741[TASK] Use magic __CLASS__ in getInstance()-methods Resolves this issue Merged Stefan Neufeind CR +2 V +2 → 6.2, 6.1, 6.0 Easy +5 −5 08/06/13, 17:23
Assigned to
Stefan Neufeind
Author
Stefan Neufeind
Priority
Should have
Category
Code Cleanup
TYPO3 version
6.2
© 2026 TYPO3 GmbH.
  • API
  • Privacy Policy
  • Legal Notice
  • Feedback