Browse Source

源码移到src目录

webconsole 6 years ago
parent
commit
e583d38172

+ 4 - 4
autoload.php

@@ -46,10 +46,10 @@ class Autoloader
     {
         $class_path = str_replace('\\', DIRECTORY_SEPARATOR, $name);
         if (strpos($name, 'Aliyun\\OTS\\') === 0) {
-            $class_file = __DIR__ . substr($class_path, strlen('Aliyun\\OTS')) . '.php';
+            $class_file = __DIR__  . DIRECTORY_SEPARATOR .  'src' . DIRECTORY_SEPARATOR . substr($class_path, strlen('Aliyun\\OTS')) . '.php';
         } else {
             if (self::$_autoloadRootPath) {
-                $class_file = self::$_autoloadRootPath . DIRECTORY_SEPARATOR . $class_path . '.php';
+                $class_file = self::$_autoloadRootPath . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR .  $class_path . '.php';
             }
             if (empty($class_file) || !is_file($class_file)) {
                 $class_file = __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . "$class_path.php";
@@ -65,6 +65,6 @@ class Autoloader
         return false;
     }
 }
-require_once(__DIR__ .'/ProtoBuffer/pb_message.php');
-require_once( __DIR__ . '/ProtoBuffer/pb_proto_ots.php');
+require_once(__DIR__ .'/src/ProtoBuffer/pb_message.php');
+require_once( __DIR__ . '/src/ProtoBuffer/pb_proto_ots.php');
 spl_autoload_register('\Aliyun\OTS\Autoloader::loadByNamespace');

Autoloader.php → src/Autoloader.php


ColumnTypeConst.php → src/ColumnTypeConst.php


ComparatorTypeConst.php → src/ComparatorTypeConst.php


DirectionConst.php → src/DirectionConst.php


Handlers/ErrorHandler.php → src/Handlers/ErrorHandler.php


Handlers/HttpHandler.php → src/Handlers/HttpHandler.php


Handlers/HttpHeaderHandler.php → src/Handlers/HttpHeaderHandler.php


Handlers/OTSHandlers.php → src/Handlers/OTSHandlers.php


Handlers/ProtoBufferDecoder.php → src/Handlers/ProtoBufferDecoder.php


Handlers/ProtoBufferEncoder.php → src/Handlers/ProtoBufferEncoder.php


Handlers/RequestContext.php → src/Handlers/RequestContext.php


Handlers/RetryHandler.php → src/Handlers/RetryHandler.php


LogicalOperatorConst.php → src/LogicalOperatorConst.php


OTSClient.php → src/OTSClient.php


OTSClientConfig.php → src/OTSClientConfig.php


OTSClientException.php → src/OTSClientException.php


OTSServerException.php → src/OTSServerException.php


ProtoBuffer/encoding/pb_base128.php → src/ProtoBuffer/encoding/pb_base128.php


ProtoBuffer/pb_message.php → src/ProtoBuffer/pb_message.php


ProtoBuffer/pb_proto_ots.php → src/ProtoBuffer/pb_proto_ots.php


ProtoBuffer/reader/pb_input_reader.php → src/ProtoBuffer/reader/pb_input_reader.php


ProtoBuffer/reader/pb_input_string_reader.php → src/ProtoBuffer/reader/pb_input_string_reader.php


ProtoBuffer/type/pb_bool.php → src/ProtoBuffer/type/pb_bool.php


ProtoBuffer/type/pb_bytes.php → src/ProtoBuffer/type/pb_bytes.php


ProtoBuffer/type/pb_double.php → src/ProtoBuffer/type/pb_double.php


ProtoBuffer/type/pb_enum.php → src/ProtoBuffer/type/pb_enum.php


ProtoBuffer/type/pb_float.php → src/ProtoBuffer/type/pb_float.php


ProtoBuffer/type/pb_int.php → src/ProtoBuffer/type/pb_int.php


ProtoBuffer/type/pb_scalar.php → src/ProtoBuffer/type/pb_scalar.php


ProtoBuffer/type/pb_signed_int.php → src/ProtoBuffer/type/pb_signed_int.php


ProtoBuffer/type/pb_string.php → src/ProtoBuffer/type/pb_string.php


Retry/DefaultRetryPolicy.php → src/Retry/DefaultRetryPolicy.php


Retry/NoRetryPolicy.php → src/Retry/NoRetryPolicy.php


Retry/RetryPolicy.php → src/Retry/RetryPolicy.php


Retry/RetryUtil.php → src/Retry/RetryUtil.php


RowExistenceExpectationConst.php → src/RowExistenceExpectationConst.php