Skip to content
Snippets Groups Projects
Commit 95997260 authored by Daniel Goerz's avatar Daniel Goerz Committed by Alexander Opitz
Browse files

[BUGFIX] Remove superfluous bindTo() calls on Closures

Change-Id: Icf900514624fdb15d286e5253b825dc31e02e900
Resolves: #70569
Releases: master
Reviewed-on: https://review.typo3.org/44535


Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarAlexander Opitz <opitz.alexander@googlemail.com>
Tested-by: default avatarAlexander Opitz <opitz.alexander@googlemail.com>
parent 06ce35f8
No related merge requests found
......@@ -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);
}
......
......@@ -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
......
......@@ -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);
}
......
......@@ -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);
}
......
......@@ -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);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment