Skip to content
Permalink
Browse files

Move backwards compatible shims.

Instead of eagerly loading the Http client on every request to wire up
class aliases we can get the same effect with stub files that provide
the required aliases.
  • Loading branch information...
markstory committed Apr 30, 2016
1 parent 6cda83e commit e80d76584eb753d2fc98faf8a9f6e8b0b14b327d
@@ -29,18 +29,6 @@ class_alias('Cake\Mailer\Email', 'Cake\Network\Email\Email');
class_alias('Cake\Mailer\Transport\MailTransport', 'Cake\Network\Email\MailTransport');
class_alias('Cake\Mailer\Transport\SmtpTransport', 'Cake\Network\Email\SmtpTransport');
// @deprecated Backwards compatibility with earler 3.x versions.
class_alias('Cake\Http\Client', 'Cake\Network\Http\Client');
class_alias('Cake\Http\Client\CookieCollection', 'Cake\Network\Http\CookieCollection');
class_alias('Cake\Http\Client\FormData', 'Cake\Network\Http\FormData');
class_alias('Cake\Http\Client\Message', 'Cake\Network\Http\Message');
class_alias('Cake\Http\Client\Request', 'Cake\Network\Http\Request');
class_alias('Cake\Http\Client\Response', 'Cake\Network\Http\Response');
class_alias('Cake\Http\Client\Adapter\Stream', 'Cake\Network\Http\Adapter\Stream');
class_alias('Cake\Http\Client\Auth\Basic', 'Cake\Network\Http\Auth\Basic');
class_alias('Cake\Http\Client\Auth\Digest', 'Cake\Network\Http\Auth\Digest');
class_alias('Cake\Http\Client\Auth\Oauth', 'Cake\Network\Http\Auth\Oauth');
class_alias('Cake\Http\Client\FormDataPart', 'Cake\Network\Http\FormData\Part');
require CAKE . 'basics.php';
@@ -0,0 +1,3 @@
<?php
// @deprecated Backwards compatibility with earler 3.x versions.
class_alias('Cake\Http\Client\Adapter\Stream', 'Cake\Network\Http\Adapter\Stream');
@@ -0,0 +1,3 @@
<?php
// @deprecated Backwards compatibility with earler 3.x versions.
class_alias('Cake\Http\Client\Auth\Basic', 'Cake\Network\Http\Auth\Basic');
@@ -0,0 +1,3 @@
<?php
// @deprecated Backwards compatibility with earler 3.x versions.
class_alias('Cake\Http\Client\Auth\Digest', 'Cake\Network\Http\Auth\Digest');
@@ -0,0 +1,3 @@
<?php
// @deprecated Backwards compatibility with earler 3.x versions.
class_alias('Cake\Http\Client\Auth\Oauth', 'Cake\Network\Http\Auth\Oauth');
@@ -0,0 +1,3 @@
<?php
// @deprecated Backwards compatibility with earler 3.x versions.
class_alias('Cake\Http\Client', 'Cake\Network\Http\Client');
@@ -0,0 +1,3 @@
<?php
// @deprecated Backwards compatibility with earler 3.x versions.
class_alias('Cake\Http\Client\CookieCollection', 'Cake\Network\Http\CookieCollection');
@@ -0,0 +1,3 @@
<?php
// @deprecated Backwards compatibility with earler 3.x versions.
class_alias('Cake\Http\Client\FormData', 'Cake\Network\Http\FormData');
@@ -0,0 +1,2 @@
<?php
class_alias('Cake\Http\Client\FormDataPart', 'Cake\Network\Http\FormData\Part');
@@ -0,0 +1,3 @@
<?php
// @deprecated Backwards compatibility with earler 3.x versions.
class_alias('Cake\Http\Client\Message', 'Cake\Network\Http\Message');
@@ -0,0 +1,3 @@
<?php
// @deprecated Backwards compatibility with earler 3.x versions.
class_alias('Cake\Http\Client\Request', 'Cake\Network\Http\Request');
@@ -0,0 +1,3 @@
<?php
// @deprecated Backwards compatibility with earler 3.x versions.
class_alias('Cake\Http\Client\Response', 'Cake\Network\Http\Response');

0 comments on commit e80d765

Please sign in to comment.
You can’t perform that action at this time.