obs-autoloader.php 2.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. $mapping = [
  3. 'Obs\Internal\Common\CheckoutStream' => __DIR__.'/Obs/Internal/Common/CheckoutStream.php',
  4. 'Obs\Internal\Common\ITransform' => __DIR__.'/Obs/Internal/Common/ITransform.php',
  5. 'Obs\Internal\Common\Model' => __DIR__.'/Obs/Internal/Common/Model.php',
  6. 'Obs\Internal\Common\ObsTransform' => __DIR__.'/Obs/Internal/Common/ObsTransform.php',
  7. 'Obs\Internal\Common\SchemaFormatter' => __DIR__.'/Obs/Internal/Common/SchemaFormatter.php',
  8. 'Obs\Internal\Common\SdkCurlFactory' => __DIR__.'/Obs/Internal/Common/SdkCurlFactory.php',
  9. 'Obs\Internal\Common\SdkStreamHandler' => __DIR__.'/Obs/Internal/Common/SdkStreamHandler.php',
  10. 'Obs\Internal\Common\ToArrayInterface' => __DIR__.'/Obs/Internal/Common/ToArrayInterface.php',
  11. 'Obs\Internal\Common\V2Transform' => __DIR__.'/Obs/Internal/Common/V2Transform.php',
  12. 'Obs\Internal\GetResponseTrait' => __DIR__.'/Obs/Internal/GetResponseTrait.php',
  13. 'Obs\Internal\Resource\Constants' => __DIR__.'/Obs/Internal/Resource/Constants.php',
  14. 'Obs\Internal\Resource\OBSConstants' => __DIR__.'/Obs/Internal/Resource/OBSConstants.php',
  15. 'Obs\Internal\Resource\OBSRequestResource' => __DIR__.'/Obs/Internal/Resource/OBSRequestResource.php',
  16. 'Obs\Internal\Resource\V2Constants' => __DIR__.'/Obs/Internal/Resource/V2Constants.php',
  17. 'Obs\Internal\Resource\V2RequestResource' => __DIR__.'/Obs/Internal/Resource/V2RequestResource.php',
  18. 'Obs\Internal\SendRequestTrait' => __DIR__.'/Obs/Internal/SendRequestTrait.php',
  19. 'Obs\Internal\Signature\AbstractSignature' => __DIR__.'/Obs/Internal/Signature/AbstractSignature.php',
  20. 'Obs\Internal\Signature\DefaultSignature' => __DIR__.'/Obs/Internal/Signature/DefaultSignature.php',
  21. 'Obs\Internal\Signature\SignatureInterface' => __DIR__.'/Obs/Internal/Signature/SignatureInterface.php',
  22. 'Obs\Internal\Signature\V4Signature' => __DIR__.'/Obs/Internal/Signature/V4Signature.php',
  23. 'Obs\Log\ObsConfig' => __DIR__.'/Obs/Log/ObsConfig.php',
  24. 'Obs\Log\ObsLog' => __DIR__.'/Obs/Log/ObsLog.php',
  25. 'Obs\ObsClient' => __DIR__.'/Obs/ObsClient.php',
  26. 'Obs\ObsException' => __DIR__.'/Obs/ObsException.php',
  27. ];
  28. spl_autoload_register(function ($class) use ($mapping) {
  29. if (isset($mapping[$class])) {
  30. require $mapping[$class];
  31. }
  32. }, true);