storage.php 370 B

12345678910111213141516
  1. <?php
  2. if ( ! defined('BASE_PATH')) exit('No direct script access allowed');
  3. /**
  4. * 封装storage
  5. * */
  6. class storage{
  7. public static function gethandle(){
  8. $include_dir = dirname(__FILE__).'/storages/';
  9. require($include_dir.ucfirst(strtolower(RUN_ENV.'.php')));
  10. return new StorageHandle();
  11. //$this->instance = new SaeStorage(SAE_ACCESSKEY,SAE_SECRETKEY);
  12. }
  13. }