map.php 5.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <?php
  2. /**
  3. * PhalApi 2.x 与 PhalApi 1.x 的映射关系
  4. *
  5. * 如果需要进行兼容,可以加载此文件
  6. *
  7. * @author dogstar<chanzonghuang@gmail.com> 2017-07-16
  8. */
  9. class PhalApi extends PhalApi\PhalApi {};
  10. class PhalApi_Api extends PhalApi\Api {};
  11. class PhalApi_ApiFactory extends PhalApi\ApiFactory {};
  12. interface PhalApi_Cache extends PhalApi\Cache {};
  13. class PhalApi_Cache_APCU extends PhalApi\Cache\APCUCache {};
  14. class PhalApi_Cache_File extends PhalApi\Cache\FileCache {};
  15. class PhalApi_Cache_Memcache extends PhalApi\Cache\MemcacheCache {};
  16. class PhalApi_Cache_Memcached extends PhalApi\Cache\MemcachedCache {};
  17. class PhalApi_Cache_Multi extends PhalApi\Cache\MultiCache {};
  18. class PhalApi_Cache_None extends PhalApi\Cache\NoneCache {};
  19. class PhalApi_Cache_Redis extends PhalApi\Cache\RedisCache {};
  20. interface PhalApi_Config extends PhalApi\Config {};
  21. class PhalApi_Config_File extends PhalApi\Config\FileConfig {};
  22. class PhalApi_Config_Yaconf extends PhalApi\Config\YaconfConfig {};
  23. class PhalApi_Cookie extends PhalApi\Cookie {};
  24. class PhalApi_Cookie_Multi extends PhalApi\Cookie\MultiCookie {};
  25. interface PhalApi_Crypt extends PhalApi\Crypt {};
  26. class PhalApi_Crypt_Mcrypt extends PhalApi\Crypt\McryptCrypt {};
  27. class PhalApi_Crypt_MultiMcrypt extends PhalApi\Crypt\MultiMcryptCrypt {};
  28. class PhalApi_Crypt_RSA_KeyGenerator extends PhalApi\Crypt\RSA\KeyGenerator {};
  29. abstract class PhalApi_Crypt_RSA_MultiBase extends PhalApi\Crypt\RSA\MultiBase {};
  30. class PhalApi_Crypt_RSA_MultiPri2Pub extends PhalApi\Crypt\RSA\MultiPri2PubCrypt {};
  31. class PhalApi_Crypt_RSA_MultiPub2Pri extends PhalApi\Crypt\RSA\MultiPub2PriCrypt {};
  32. class PhalApi_Crypt_RSA_Pri2Pub extends PhalApi\Crypt\RSA\Pri2PubCrypt {};
  33. class PhalApi_Crypt_RSA_Pub2Pri extends PhalApi\Crypt\RSA\Pub2PriCrypt {};
  34. class PhalApi_CUrl extends PhalApi\CUrl {};
  35. interface PhalApi_DB extends PhalApi\Database {};
  36. class PhalApi_DB_NotORM extends PhalApi\Database\NotORMDatabase {};
  37. class PhalApi_DI extends PhalApi\DependenceInjection {};
  38. class PhalApi_Exception extends PhalApi\Exception {};
  39. class PhalApi_Exception_BadRequest extends PhalApi\Exception\BadRequestException {};
  40. class PhalApi_Exception_InternalServerError extends PhalApi\Exception\InternalServerErrorException {};
  41. class PhalApi_Exception_Redirect extends PhalApi\Exception\RedirectException {};
  42. interface PhalApi_Filter extends PhalApi\Filter {};
  43. class PhalApi_Filter_None extends PhalApi\Filter\NoneFilter {};
  44. class PhalApi_Filter_SimpleMD5 extends PhalApi\Filter\SimpleMD5Filter {};
  45. class PhalApi_Helper_ApiDesc extends PhalApi\Helper\ApiDesc {};
  46. class PhalApi_Helper_ApiList extends PhalApi\Helper\ApiList {};
  47. class PhalApi_Helper_ApiOnline extends PhalApi\Helper\ApiOnline {};
  48. class PhalApi_Helper_TestRunner extends PhalApi\Helper\TestRunner {};
  49. class PhalApi_Helper_Tracer extends PhalApi\Helper\Tracer {};
  50. class PhalApi_Loader extends PhalApi\Loader {};
  51. abstract class PhalApi_Logger extends PhalApi\Logger {};
  52. class PhalApi_Logger_Explorer extends PhalApi\Logger\ExplorerLogger {};
  53. class PhalApi_Logger_File extends PhalApi\Logger\FileLogger {};
  54. interface PhalApi_Model extends PhalApi\Model {};
  55. class PhalApi_Model_NotORM extends PhalApi\Model\NotORMModel {};
  56. abstract class PhalApi_ModelProxy extends PhalApi\Model\Proxy {};
  57. class PhalApi_ModelQuery extends PhalApi\Model\Query {};
  58. class PhalApi_Request extends PhalApi\Request {};
  59. interface PhalApi_Request_Formatter extends PhalApi\Request\Formatter {};
  60. class PhalApi_Request_Formatter_Array extends PhalApi\Request\Formatter\ArrayFormatter {};
  61. class PhalApi_Request_Formatter_Base extends PhalApi\Request\Formatter\BaseFormatter {};
  62. class PhalApi_Request_Formatter_Boolean extends PhalApi\Request\Formatter\BooleanFormatter {};
  63. class PhalApi_Request_Formatter_Callable extends PhalApi\Request\Formatter\CallableFormatter {};
  64. class PhalApi_Request_Formatter_Callback extends PhalApi\Request\Formatter\CallbackFormatter {};
  65. class PhalApi_Request_Formatter_Date extends PhalApi\Request\Formatter\DateFormatter {};
  66. class PhalApi_Request_Formatter_Enum extends PhalApi\Request\Formatter\EnumFormatter {};
  67. class PhalApi_Request_Formatter_File extends PhalApi\Request\Formatter\FileFormatter {};
  68. class PhalApi_Request_Formatter_Float extends PhalApi\Request\Formatter\FloatFormatter {};
  69. class PhalApi_Request_Formatter_Int extends PhalApi\Request\Formatter\IntFormatter {};
  70. class PhalApi_Request_Formatter_String extends PhalApi\Request\Formatter\StringFormatter {};
  71. class PhalApi_Request_Var extends PhalApi\Request\Parser {};
  72. abstract class PhalApi_Response extends PhalApi\Response {};
  73. class PhalApi_Response_Explorer extends PhalApi\Response\ExplorerResponse {};
  74. class PhalApi_Response_Json extends PhalApi\Response\JsonResponse {};
  75. class PhalApi_Response_JsonP extends PhalApi\Response\JsonpResponse {};
  76. class PhalApi_Response_Xml extends PhalApi\Response\XmlResponse {};
  77. class PhalApi_Tool extends PhalApi\Tool {};
  78. class PhalApi_Translator extends PhalApi\Translator {};
  79. function DI() {
  80. return PhalApi\DI();
  81. }
  82. function SL($language) {
  83. return PhalApi\SL($language);
  84. }
  85. function T($msg, $params = array()) {
  86. return PhalApi\T($msg, $params);
  87. }