[BUGFIX] Remove superfluous bindTo() calls on Closures 35/44535/3
authorDaniel Goerz <ervaude@gmail.com>
Wed, 4 Nov 2015 13:44:28 +0000 (14:44 +0100)
committerAlexander Opitz <opitz.alexander@googlemail.com>
Thu, 5 Nov 2015 12:20:55 +0000 (13:20 +0100)
Change-Id: Icf900514624fdb15d286e5253b825dc31e02e900
Resolves: #70569
Releases: master
Reviewed-on: https://review.typo3.org/44535
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Alexander Opitz <opitz.alexander@googlemail.com>
Tested-by: Alexander Opitz <opitz.alexander@googlemail.com>
typo3/sysext/backend/Classes/Console/Application.php
typo3/sysext/backend/Classes/Console/CliRequestHandler.php
typo3/sysext/backend/Classes/Http/Application.php
typo3/sysext/frontend/Classes/Http/Application.php
typo3/sysext/install/Classes/Http/Application.php

index ddd1e7b..07d5281 100644 (file)
@@ -73,9 +73,6 @@ class Application implements ApplicationInterface
         $this->bootstrap->handleRequest(new \Symfony\Component\Console\Input\ArgvInput());
 
         if ($execute !== null) {
-            if ($execute instanceof \Closure) {
-                $execute->bindTo($this);
-            }
             call_user_func($execute);
         }
 
index dd94489..979019b 100644 (file)
@@ -66,9 +66,6 @@ class CliRequestHandler implements RequestHandlerInterface
             $this->boot($commandLineName);
 
             if (is_callable($commandLineScript)) {
-                if ($commandLineScript instanceof \Closure) {
-                    $commandLineScript->bindTo($this);
-                }
                 call_user_func($commandLineScript);
             } else {
                 // include the CLI script
index 3b683c3..df54485 100644 (file)
@@ -94,9 +94,6 @@ class Application implements ApplicationInterface
         $this->bootstrap->handleRequest($this->request);
 
         if ($execute !== null) {
-            if ($execute instanceof \Closure) {
-                $execute->bindTo($this);
-            }
             call_user_func($execute);
         }
 
index dd07470..c086297 100644 (file)
@@ -78,9 +78,6 @@ class Application implements ApplicationInterface
         $this->bootstrap->handleRequest(\TYPO3\CMS\Core\Http\ServerRequestFactory::fromGlobals());
 
         if ($execute !== null) {
-            if ($execute instanceof \Closure) {
-                $execute->bindTo($this);
-            }
             call_user_func($execute);
         }
 
index 127bb8b..c43d436 100644 (file)
@@ -74,9 +74,6 @@ class Application implements ApplicationInterface
         $this->bootstrap->handleRequest(\TYPO3\CMS\Core\Http\ServerRequestFactory::fromGlobals());
 
         if ($execute !== null) {
-            if ($execute instanceof \Closure) {
-                $execute->bindTo($this);
-            }
             call_user_func($execute);
         }