diff --git a/lib/Cake/Controller/Component/RequestHandlerComponent.php b/lib/Cake/Controller/Component/RequestHandlerComponent.php index 46b0560b4c5..2c789ace344 100644 --- a/lib/Cake/Controller/Component/RequestHandlerComponent.php +++ b/lib/Cake/Controller/Component/RequestHandlerComponent.php @@ -26,7 +26,6 @@ use Cake\Core\App; use Cake\Core\Configure; use Cake\Error; -use Cake\Routing\RequestActionTrait; use Cake\Routing\Router; use Cake\Utility\Inflector; use Cake\Utility\Xml; @@ -44,8 +43,6 @@ */ class RequestHandlerComponent extends Component { - use RequestActionTrait; - /** * The layout that will be switched to for Ajax requests * @@ -265,7 +262,7 @@ public function beforeRedirect(Controller $controller, $url, $status = null, $ex $code = key($statusCode); $this->response->statusCode($code); } - $this->response->body($this->requestAction($url, array('return', 'bare' => false))); + $this->response->body($controller->requestAction($url, array('return', 'bare' => false))); $this->response->send(); $this->_stop(); }