初始化

This commit is contained in:
2026-03-11 18:35:09 +08:00
commit a227deaecd
4332 changed files with 631008 additions and 0 deletions

View File

@ -0,0 +1,19 @@
<?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();