[BUGFIX] Make Extbase EnvironmentService a Singleton 42/29042/3
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:03 +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/29042
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
typo3/sysext/extbase/Classes/Service/EnvironmentService.php

index 796947a..a39c446 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"