[BUGFIX] Remove singleton for EXT:form Localization
authorChristian Kuhn <lolli@schwarzbu.ch>
Mon, 22 Oct 2012 15:38:07 +0000 (17:38 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 22 Oct 2012 16:11:59 +0000 (18:11 +0200)
commitf66d1636041c15f51af5124cb0b2b00e5f8fd0e3
tree4c1645ee51140d060cb531d925959b3d3364979e
parent34733d1e9acedb9c56d4b37c9bcd929692908b67
[BUGFIX] Remove singleton for EXT:form Localization

\TYPO3\CMS\Form\Localization is a singleton class with constructor
parameters. This is an antipattern and broken by design. As an effect
it leads to warnings in unit tests and makes the class unusable
with multiple files.

The patch removes the implementation of the singletonInterface, but
sets the default localization file as default parameter to keep
backwards compatibility.

Change-Id: I3ed5c77c5c3a653c8d5e7259baa64a41c8c20859
Resolves: #42280
Releases: 6.0
Reviewed-on: http://review.typo3.org/15886
Reviewed-by: Steffen Ritter
Reviewed-by: Wouter Wolters
Reviewed-by: Nicole Cordes
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/form/Classes/Controller/FormController.php
typo3/sysext/form/Classes/Localization.php