[BUGFIX] Make Extbase Cli\RequestBuilder a Singleton 12/29112/2
authorMarc Bastian Heinrichs <typo3@mbh-software.de>
Thu, 3 Apr 2014 09:02:34 +0000 (11:02 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Sun, 13 Apr 2014 10:18:51 +0000 (12:18 +0200)
Like the Web\RequestBuilder the Cli\RequestBuilder is a service
object for the RequestHandler. It gets injected and has no
internal state, thus it should be a Singleton.

Resolves: #57591
Releases: 6.2
Change-Id: I959fcfdbc4182cd86cd38d438a0ff7f0de1845f1
Reviewed-on: https://review.typo3.org/29112
Reviewed-by: Wouter Wolters
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
typo3/sysext/extbase/Classes/Mvc/Cli/RequestBuilder.php

index 9546f68..f40fd97 100644 (file)
@@ -29,7 +29,7 @@ namespace TYPO3\CMS\Extbase\Mvc\Cli;
  *
  * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later
  */
-class RequestBuilder {
+class RequestBuilder implements \TYPO3\CMS\Core\SingletonInterface {
 
        /**
         * @var \TYPO3\CMS\Extbase\Object\ObjectManagerInterface