Deprecated.php
18 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Backwards compatibility layer for AmeliaVendor_Requests. |
| 5 | * |
| 6 | * Allows for Composer to autoload the old PSR-0 classes via the custom autoloader. |
| 7 | * This prevents issues with _extending final classes_ (which was the previous solution). |
| 8 | * |
| 9 | * Please see the Changelog for the 2.0.0 release for upgrade notes. |
| 10 | * |
| 11 | * @package AmeliaVendor_Requests |
| 12 | * |
| 13 | * @deprecated 2.0.0 Use the PSR-4 class names instead. |
| 14 | */ |
| 15 | if (class_exists('AmeliaVendor\WpOrg\Requests\Autoload') === false) { |
| 16 | require_once dirname(__DIR__) . '/src/Autoload.php'; |
| 17 | } |
| 18 | \AmeliaVendor\WpOrg\Requests\Autoload::register(); |