Skip to content

Commit

Permalink
Force request/response to autoload
Browse files Browse the repository at this point in the history
Defining aliases fails when the aliased class is used for real.
  • Loading branch information
markstory committed Dec 31, 2016
1 parent abe5cac commit 16ef386
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Http/Response.php
Expand Up @@ -2427,4 +2427,4 @@ public function __debugInfo()
}

// Ensure backwards compat alias exists.
class_alias('Cake\Http\Response', 'Cake\Network\Response');
class_exists('Cake\Network\Response');
2 changes: 1 addition & 1 deletion src/Http/ServerRequest.php
Expand Up @@ -2131,4 +2131,4 @@ public function offsetUnset($name)
}

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

0 comments on commit 16ef386

Please sign in to comment.