You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
545 B
19 lines
545 B
<?php
|
|
/**
|
|
* Backwards compatibility layer for Requests.
|
|
*
|
|
* Allows for Composer to autoload the old PSR-0 classes via the custom autoloader.
|
|
* This prevents issues with _extending final classes_ (which was the previous solution).
|
|
*
|
|
* Please see the Changelog for the 2.0.0 release for upgrade notes.
|
|
*
|
|
* @package Requests
|
|
*
|
|
* @deprecated 2.0.0 Use the PSR-4 class names instead.
|
|
*/
|
|
|
|
if (class_exists('WpOrg\Requests\Autoload') === false) {
|
|
require_once dirname(__DIR__) . '/src/Autoload.php';
|
|
}
|
|
|
|
WpOrg\Requests\Autoload::register();
|
|
|