mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Renaming private method to protected.
Removing return by reference operator.
This commit is contained in:
parent
f36f38e7f6
commit
f27566336c
1 changed files with 3 additions and 4 deletions
|
@ -195,9 +195,9 @@ class Dispatcher {
|
|||
* @param array $params Array of parameters
|
||||
* @return mixed name of controller if not loaded, or object if loaded
|
||||
*/
|
||||
protected function &_getController($request) {
|
||||
protected function _getController($request) {
|
||||
$controller = false;
|
||||
$ctrlClass = $this->__loadController($request);
|
||||
$ctrlClass = $this->_loadController($request);
|
||||
if (!$ctrlClass) {
|
||||
return $controller;
|
||||
}
|
||||
|
@ -213,9 +213,8 @@ class Dispatcher {
|
|||
*
|
||||
* @param array $params Array of parameters
|
||||
* @return string|bool Name of controller class name
|
||||
* @access private
|
||||
*/
|
||||
function __loadController($request) {
|
||||
protected function _loadController($request) {
|
||||
$pluginName = $pluginPath = $controller = null;
|
||||
if (!empty($request->params['plugin'])) {
|
||||
$pluginName = $controller = Inflector::camelize($request->params['plugin']);
|
||||
|
|
Loading…
Reference in a new issue