[BUGFIX] Make Extbase EnvironmentService a Singleton 43/29043/2
authorMarc Bastian Heinrichs <typo3@mbh-software.de>
Tue, 1 Apr 2014 19:17:58 +0000 (21:17 +0200)
committerHelmut Hummel <helmut.hummel@typo3.org>
Tue, 1 Apr 2014 19:22:36 +0000 (21:22 +0200)
EnvironmentService is a service and gets injected in different
classes, thus it has to be a Singleton.

Resolves: #57518
Releases: 6.2, 6.1
Change-Id: Ia8a3b8882be27c0f45569af818964036f0a9b16d
Reviewed-on: https://review.typo3.org/29043
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
typo3/sysext/extbase/Classes/Service/EnvironmentService.php

index 602f98d..2f20685 100644 (file)
@@ -30,7 +30,7 @@ namespace TYPO3\CMS\Extbase\Service;
 /**
  * Service for determining environment params
  */
-class EnvironmentService {
+class EnvironmentService implements \TYPO3\CMS\Core\SingletonInterface {
 
        /**
         * Detects if TYPO3_MODE is defined and its value is "FE"
@@ -67,4 +67,4 @@ class EnvironmentService {
        }
 }
 
-?>
\ No newline at end of file
+?>