diff --git a/Bootstraps/Symfony.php b/Bootstraps/Symfony.php index 6d53392..3514d64 100644 --- a/Bootstraps/Symfony.php +++ b/Bootstraps/Symfony.php @@ -71,13 +71,14 @@ public function getApplication() public function preHandle($app) { //resets Kernels startTime, so Symfony can correctly calculate the execution time - \Closure::bind( + $func = \Closure::bind( function () { $this->startTime = microtime(true); }, $app, 'AppKernel' - )->call($app); + ); + $func($app); } /**