From 946edc91f77160c0d24d0278a142fbc9de84af01 Mon Sep 17 00:00:00 2001 From: Joseph Silber Date: Wed, 22 Jun 2016 09:49:59 -0400 Subject: [PATCH] Remove extra method (#14103) --- src/Illuminate/Routing/ControllerDispatcher.php | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/Illuminate/Routing/ControllerDispatcher.php b/src/Illuminate/Routing/ControllerDispatcher.php index aebfdc83c17f..2225a22b1bc9 100644 --- a/src/Illuminate/Routing/ControllerDispatcher.php +++ b/src/Illuminate/Routing/ControllerDispatcher.php @@ -15,19 +15,6 @@ class ControllerDispatcher * @return mixed */ public function dispatch(Route $route, $controller, $method) - { - return $this->call($route, $controller, $method); - } - - /** - * Call the given controller instance method. - * - * @param \Illuminate\Routing\Route $route - * @param \Illuminate\Routing\Controller $controller - * @param string $method - * @return mixed - */ - protected function call($route, $controller, $method) { $parameters = $this->resolveClassMethodDependencies( $route->parametersWithoutNulls(), $controller, $method @@ -37,7 +24,7 @@ protected function call($route, $controller, $method) return $controller->callAction($method, $parameters); } - return call_user_func_array([$controller, $method], $parameters); + return $controller->$method(...$parameters); } /**