Deprecated.php 545 B

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