Browse Source

modify autoload files

webconsole 6 years ago
parent
commit
904ffd4a18
2 changed files with 3 additions and 2 deletions
  1. 2 2
      autoload.php
  2. 1 0
      composer.json

+ 2 - 2
autoload.php

@@ -65,6 +65,6 @@ class Autoloader
         return false;
     }
 }
-require_once(__DIR__ .'/src/ProtoBuffer/pb_message.php');
-require_once( __DIR__ . '/src/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');

+ 1 - 0
composer.json

@@ -17,6 +17,7 @@
     },
     "minimum-stability": "stable",
     "autoload": {
+		"files": ["src/ProtoBuffer/pb_message.php","src/ProtoBuffer/pb_proto_ots.php"],
         "psr-4": {"Aliyun\\OTS\\": "src"}
     }
 }