mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
"Removing call to Controller::_initComponents(); and Controller::__mergeVars(); out of Dispatcher"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6322 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
6e1f2fe457
commit
c47700d8c4
2 changed files with 3 additions and 4 deletions
|
@ -219,10 +219,7 @@ class Dispatcher extends Object {
|
||||||
}
|
}
|
||||||
|
|
||||||
Router::setRequestInfo(array($this->params, array('base' => $this->base, 'here' => $this->here, 'webroot' => $this->webroot)));
|
Router::setRequestInfo(array($this->params, array('base' => $this->base, 'here' => $this->here, 'webroot' => $this->webroot)));
|
||||||
$controller->_mergeVars();
|
|
||||||
$controller->_initComponents();
|
|
||||||
$controller->constructClasses();
|
$controller->constructClasses();
|
||||||
|
|
||||||
$this->start($controller);
|
$this->start($controller);
|
||||||
|
|
||||||
if ($privateAction) {
|
if ($privateAction) {
|
||||||
|
|
|
@ -313,7 +313,7 @@ class Controller extends Object {
|
||||||
*
|
*
|
||||||
* @access protected
|
* @access protected
|
||||||
*/
|
*/
|
||||||
function _mergeVars () {
|
function __mergeVars () {
|
||||||
$pluginName = Inflector::camelize($this->plugin);
|
$pluginName = Inflector::camelize($this->plugin);
|
||||||
$pluginController = $pluginName . 'AppController';
|
$pluginController = $pluginName . 'AppController';
|
||||||
|
|
||||||
|
@ -372,6 +372,8 @@ class Controller extends Object {
|
||||||
* @see Controller::loadModel()
|
* @see Controller::loadModel()
|
||||||
*/
|
*/
|
||||||
function constructClasses() {
|
function constructClasses() {
|
||||||
|
$this->__mergeVars();
|
||||||
|
$this->_initComponents();
|
||||||
if ($this->uses === null || ($this->uses === array())) {
|
if ($this->uses === null || ($this->uses === array())) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue