Skip to content

Commit

Permalink
Remove requestAction from RequestHandlerComponent.
Browse files Browse the repository at this point in the history
The method is available on the controller objects. Use that instead.
  • Loading branch information
markstory committed Nov 5, 2012
1 parent 99dce5f commit 0930645
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/Cake/Controller/Component/RequestHandlerComponent.php
Expand Up @@ -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;
Expand All @@ -44,8 +43,6 @@
*/
class RequestHandlerComponent extends Component {

use RequestActionTrait;

/**
* The layout that will be switched to for Ajax requests
*
Expand Down Expand Up @@ -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();
}
Expand Down

0 comments on commit 0930645

Please sign in to comment.