Skip to content

Commit

Permalink
Ensure the backwards compatibility aliases are loaded
Browse files Browse the repository at this point in the history
Ensure that if an application never references the old aliases that they
are still setup. Without this applications with typehints against the
old aliases can sometimes fail.
  • Loading branch information
markstory committed Dec 31, 2016
1 parent d04f88a commit abe5cac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Http/Response.php
Expand Up @@ -2425,3 +2425,6 @@ public function __debugInfo()
];
}
}

// Ensure backwards compat alias exists.
class_alias('Cake\Http\Response', 'Cake\Network\Response');
3 changes: 3 additions & 0 deletions src/Http/ServerRequest.php
Expand Up @@ -2129,3 +2129,6 @@ public function offsetUnset($name)
unset($this->params[$name]);
}
}

// Ensure backwards compat alias exists.
class_alias('Cake\Http\ServerRequest', 'Cake\Network\Request');

0 comments on commit abe5cac

Please sign in to comment.