diff --git a/composer.json b/composer.json index 501eba8e..c4de9642 100644 --- a/composer.json +++ b/composer.json @@ -34,12 +34,13 @@ }, "autoload": { "psr-4": { - "Kiri\\": "core/", + "Kiri\\": "kiri-core/", "Http\\Message\\": "http-message/", + "Http\\Coroutine\\": "http-coroutine/", "Http\\Handler\\": "http-handler/", "Server\\": "http-server/", "Gii\\": "kiri-gii/", - "Annotation\\": "note/" + "Annotation\\": "kiri-note/" }, "files": [ "error.php", diff --git a/core/Abstracts/BaseApplication.php b/kiri-core/Abstracts/BaseApplication.php similarity index 100% rename from core/Abstracts/BaseApplication.php rename to kiri-core/Abstracts/BaseApplication.php diff --git a/core/Abstracts/BaseGoto.php b/kiri-core/Abstracts/BaseGoto.php similarity index 100% rename from core/Abstracts/BaseGoto.php rename to kiri-core/Abstracts/BaseGoto.php diff --git a/core/Abstracts/BaseObject.php b/kiri-core/Abstracts/BaseObject.php similarity index 100% rename from core/Abstracts/BaseObject.php rename to kiri-core/Abstracts/BaseObject.php diff --git a/core/Abstracts/Command.php b/kiri-core/Abstracts/Command.php similarity index 100% rename from core/Abstracts/Command.php rename to kiri-core/Abstracts/Command.php diff --git a/core/Abstracts/Component.php b/kiri-core/Abstracts/Component.php similarity index 100% rename from core/Abstracts/Component.php rename to kiri-core/Abstracts/Component.php diff --git a/core/Abstracts/Config.php b/kiri-core/Abstracts/Config.php similarity index 100% rename from core/Abstracts/Config.php rename to kiri-core/Abstracts/Config.php diff --git a/core/Abstracts/Configure.php b/kiri-core/Abstracts/Configure.php similarity index 100% rename from core/Abstracts/Configure.php rename to kiri-core/Abstracts/Configure.php diff --git a/core/Abstracts/IListener.php b/kiri-core/Abstracts/IListener.php similarity index 100% rename from core/Abstracts/IListener.php rename to kiri-core/Abstracts/IListener.php diff --git a/core/Abstracts/Input.php b/kiri-core/Abstracts/Input.php similarity index 100% rename from core/Abstracts/Input.php rename to kiri-core/Abstracts/Input.php diff --git a/core/Abstracts/Kernel.php b/kiri-core/Abstracts/Kernel.php similarity index 100% rename from core/Abstracts/Kernel.php rename to kiri-core/Abstracts/Kernel.php diff --git a/core/Abstracts/Listener.php b/kiri-core/Abstracts/Listener.php similarity index 100% rename from core/Abstracts/Listener.php rename to kiri-core/Abstracts/Listener.php diff --git a/core/Abstracts/Logger.php b/kiri-core/Abstracts/Logger.php similarity index 100% rename from core/Abstracts/Logger.php rename to kiri-core/Abstracts/Logger.php diff --git a/core/Abstracts/Provider.php b/kiri-core/Abstracts/Provider.php similarity index 100% rename from core/Abstracts/Provider.php rename to kiri-core/Abstracts/Provider.php diff --git a/core/Abstracts/Providers.php b/kiri-core/Abstracts/Providers.php similarity index 100% rename from core/Abstracts/Providers.php rename to kiri-core/Abstracts/Providers.php diff --git a/core/Abstracts/TraitApplication.php b/kiri-core/Abstracts/TraitApplication.php similarity index 100% rename from core/Abstracts/TraitApplication.php rename to kiri-core/Abstracts/TraitApplication.php diff --git a/core/Application.php b/kiri-core/Application.php similarity index 100% rename from core/Application.php rename to kiri-core/Application.php diff --git a/core/Async.php b/kiri-core/Async.php similarity index 100% rename from core/Async.php rename to kiri-core/Async.php diff --git a/core/Cache/Base/Redis.php b/kiri-core/Cache/Base/Redis.php similarity index 100% rename from core/Cache/Base/Redis.php rename to kiri-core/Cache/Base/Redis.php diff --git a/core/Cache/File.php b/kiri-core/Cache/File.php similarity index 100% rename from core/Cache/File.php rename to kiri-core/Cache/File.php diff --git a/core/Cache/ICache.php b/kiri-core/Cache/ICache.php similarity index 100% rename from core/Cache/ICache.php rename to kiri-core/Cache/ICache.php diff --git a/core/Cache/Redis.php b/kiri-core/Cache/Redis.php similarity index 100% rename from core/Cache/Redis.php rename to kiri-core/Cache/Redis.php diff --git a/core/Di/Container.php b/kiri-core/Di/Container.php similarity index 100% rename from core/Di/Container.php rename to kiri-core/Di/Container.php diff --git a/core/Di/ContainerInterface.php b/kiri-core/Di/ContainerInterface.php similarity index 100% rename from core/Di/ContainerInterface.php rename to kiri-core/Di/ContainerInterface.php diff --git a/core/Di/LocalService.php b/kiri-core/Di/LocalService.php similarity index 100% rename from core/Di/LocalService.php rename to kiri-core/Di/LocalService.php diff --git a/core/Di/NoteManager.php b/kiri-core/Di/NoteManager.php similarity index 100% rename from core/Di/NoteManager.php rename to kiri-core/Di/NoteManager.php diff --git a/core/Environmental.php b/kiri-core/Environmental.php similarity index 100% rename from core/Environmental.php rename to kiri-core/Environmental.php diff --git a/core/Error/ErrorHandler.php b/kiri-core/Error/ErrorHandler.php similarity index 100% rename from core/Error/ErrorHandler.php rename to kiri-core/Error/ErrorHandler.php diff --git a/core/Error/ErrorInterface.php b/kiri-core/Error/ErrorInterface.php similarity index 100% rename from core/Error/ErrorInterface.php rename to kiri-core/Error/ErrorInterface.php diff --git a/core/Error/Logger.php b/kiri-core/Error/Logger.php similarity index 100% rename from core/Error/Logger.php rename to kiri-core/Error/Logger.php diff --git a/core/Error/LoggerAspect.php b/kiri-core/Error/LoggerAspect.php similarity index 100% rename from core/Error/LoggerAspect.php rename to kiri-core/Error/LoggerAspect.php diff --git a/core/Error/LoggerProcess.php b/kiri-core/Error/LoggerProcess.php similarity index 100% rename from core/Error/LoggerProcess.php rename to kiri-core/Error/LoggerProcess.php diff --git a/core/Event.php b/kiri-core/Event.php similarity index 100% rename from core/Event.php rename to kiri-core/Event.php diff --git a/core/Exception/AuthException.php b/kiri-core/Exception/AuthException.php similarity index 100% rename from core/Exception/AuthException.php rename to kiri-core/Exception/AuthException.php diff --git a/core/Exception/ComponentException.php b/kiri-core/Exception/ComponentException.php similarity index 100% rename from core/Exception/ComponentException.php rename to kiri-core/Exception/ComponentException.php diff --git a/core/Exception/ConfigException.php b/kiri-core/Exception/ConfigException.php similarity index 100% rename from core/Exception/ConfigException.php rename to kiri-core/Exception/ConfigException.php diff --git a/core/Exception/InitException.php b/kiri-core/Exception/InitException.php similarity index 100% rename from core/Exception/InitException.php rename to kiri-core/Exception/InitException.php diff --git a/core/Exception/NotFindClassException.php b/kiri-core/Exception/NotFindClassException.php similarity index 100% rename from core/Exception/NotFindClassException.php rename to kiri-core/Exception/NotFindClassException.php diff --git a/core/Exception/NotFindPropertyException.php b/kiri-core/Exception/NotFindPropertyException.php similarity index 100% rename from core/Exception/NotFindPropertyException.php rename to kiri-core/Exception/NotFindPropertyException.php diff --git a/core/Exception/RedisConnectException.php b/kiri-core/Exception/RedisConnectException.php similarity index 100% rename from core/Exception/RedisConnectException.php rename to kiri-core/Exception/RedisConnectException.php diff --git a/core/FileListen/FileChangeCustomProcess.php b/kiri-core/FileListen/FileChangeCustomProcess.php similarity index 100% rename from core/FileListen/FileChangeCustomProcess.php rename to kiri-core/FileListen/FileChangeCustomProcess.php diff --git a/core/FileListen/Inotify.php b/kiri-core/FileListen/Inotify.php similarity index 100% rename from core/FileListen/Inotify.php rename to kiri-core/FileListen/Inotify.php diff --git a/core/FileListen/Scaner.php b/kiri-core/FileListen/Scaner.php similarity index 100% rename from core/FileListen/Scaner.php rename to kiri-core/FileListen/Scaner.php diff --git a/core/IAspect.php b/kiri-core/IAspect.php similarity index 100% rename from core/IAspect.php rename to kiri-core/IAspect.php diff --git a/core/IProxy.php b/kiri-core/IProxy.php similarity index 100% rename from core/IProxy.php rename to kiri-core/IProxy.php diff --git a/core/Jwt/JWTAuthMiddleware.php b/kiri-core/Jwt/JWTAuthMiddleware.php similarity index 100% rename from core/Jwt/JWTAuthMiddleware.php rename to kiri-core/Jwt/JWTAuthMiddleware.php diff --git a/core/Jwt/JWTAuthTokenException.php b/kiri-core/Jwt/JWTAuthTokenException.php similarity index 100% rename from core/Jwt/JWTAuthTokenException.php rename to kiri-core/Jwt/JWTAuthTokenException.php diff --git a/core/Jwt/Jwt.php b/kiri-core/Jwt/Jwt.php similarity index 100% rename from core/Jwt/Jwt.php rename to kiri-core/Jwt/Jwt.php diff --git a/core/Jwt/JwtHelper.php b/kiri-core/Jwt/JwtHelper.php similarity index 100% rename from core/Jwt/JwtHelper.php rename to kiri-core/Jwt/JwtHelper.php diff --git a/core/Kiri.php b/kiri-core/Kiri.php similarity index 99% rename from core/Kiri.php rename to kiri-core/Kiri.php index 4c4deb0d..6bdb9d71 100644 --- a/core/Kiri.php +++ b/kiri-core/Kiri.php @@ -593,7 +593,7 @@ class Kiri return; } static::$_autoload[$class] = $file; - include_once "$file"; + include_once "Kiri.php"; } @@ -606,7 +606,7 @@ class Kiri return; } $file = static::$_autoload[$className]; - require_once "$file"; + require_once "Kiri.php"; } diff --git a/core/Pool/Alias.php b/kiri-core/Pool/Alias.php similarity index 100% rename from core/Pool/Alias.php rename to kiri-core/Pool/Alias.php diff --git a/core/Pool/Connection.php b/kiri-core/Pool/Connection.php similarity index 100% rename from core/Pool/Connection.php rename to kiri-core/Pool/Connection.php diff --git a/core/Pool/Helper/QueueInterface.php b/kiri-core/Pool/Helper/QueueInterface.php similarity index 100% rename from core/Pool/Helper/QueueInterface.php rename to kiri-core/Pool/Helper/QueueInterface.php diff --git a/core/Pool/Helper/SplQueue.php b/kiri-core/Pool/Helper/SplQueue.php similarity index 100% rename from core/Pool/Helper/SplQueue.php rename to kiri-core/Pool/Helper/SplQueue.php diff --git a/core/Pool/Pool.php b/kiri-core/Pool/Pool.php similarity index 100% rename from core/Pool/Pool.php rename to kiri-core/Pool/Pool.php diff --git a/core/Pool/Redis.php b/kiri-core/Pool/Redis.php similarity index 100% rename from core/Pool/Redis.php rename to kiri-core/Pool/Redis.php diff --git a/core/Pool/StopHeartbeatCheck.php b/kiri-core/Pool/StopHeartbeatCheck.php similarity index 100% rename from core/Pool/StopHeartbeatCheck.php rename to kiri-core/Pool/StopHeartbeatCheck.php diff --git a/core/Proxy.php b/kiri-core/Proxy.php similarity index 100% rename from core/Proxy.php rename to kiri-core/Proxy.php diff --git a/core/Proxy/AProxy.php b/kiri-core/Proxy/AProxy.php similarity index 100% rename from core/Proxy/AProxy.php rename to kiri-core/Proxy/AProxy.php diff --git a/core/Proxy/AspectProxy.php b/kiri-core/Proxy/AspectProxy.php similarity index 100% rename from core/Proxy/AspectProxy.php rename to kiri-core/Proxy/AspectProxy.php diff --git a/core/Proxy/ProxyInterface.php b/kiri-core/Proxy/ProxyInterface.php similarity index 100% rename from core/Proxy/ProxyInterface.php rename to kiri-core/Proxy/ProxyInterface.php diff --git a/core/Runtime.php b/kiri-core/Runtime.php similarity index 100% rename from core/Runtime.php rename to kiri-core/Runtime.php diff --git a/core/ToArray.php b/kiri-core/ToArray.php similarity index 100% rename from core/ToArray.php rename to kiri-core/ToArray.php diff --git a/core/Core/ArrayAccess.php b/kiri-core/core/ArrayAccess.php similarity index 100% rename from core/Core/ArrayAccess.php rename to kiri-core/core/ArrayAccess.php diff --git a/core/Core/DateFormat.php b/kiri-core/core/DateFormat.php similarity index 100% rename from core/Core/DateFormat.php rename to kiri-core/core/DateFormat.php diff --git a/core/Core/Dtl.php b/kiri-core/core/Dtl.php similarity index 100% rename from core/Core/Dtl.php rename to kiri-core/core/Dtl.php diff --git a/core/Core/Help.php b/kiri-core/core/Help.php similarity index 100% rename from core/Core/Help.php rename to kiri-core/core/Help.php diff --git a/core/Core/Json.php b/kiri-core/core/Json.php similarity index 100% rename from core/Core/Json.php rename to kiri-core/core/Json.php diff --git a/core/Core/Number.php b/kiri-core/core/Number.php similarity index 100% rename from core/Core/Number.php rename to kiri-core/core/Number.php diff --git a/core/Core/Reader.php b/kiri-core/core/Reader.php similarity index 100% rename from core/Core/Reader.php rename to kiri-core/core/Reader.php diff --git a/core/Core/Str.php b/kiri-core/core/Str.php similarity index 100% rename from core/Core/Str.php rename to kiri-core/core/Str.php diff --git a/core/Core/Xml.php b/kiri-core/core/Xml.php similarity index 100% rename from core/Core/Xml.php rename to kiri-core/core/Xml.php diff --git a/note/Annotation.php b/kiri-note/Annotation.php similarity index 100% rename from note/Annotation.php rename to kiri-note/Annotation.php diff --git a/note/Aspect.php b/kiri-note/Aspect.php similarity index 100% rename from note/Aspect.php rename to kiri-note/Aspect.php diff --git a/note/Asynchronous.php b/kiri-note/Asynchronous.php similarity index 100% rename from note/Asynchronous.php rename to kiri-note/Asynchronous.php diff --git a/note/Attribute.php b/kiri-note/Attribute.php similarity index 100% rename from note/Attribute.php rename to kiri-note/Attribute.php diff --git a/note/Event.php b/kiri-note/Event.php similarity index 100% rename from note/Event.php rename to kiri-note/Event.php diff --git a/note/IAnnotation.php b/kiri-note/IAnnotation.php similarity index 100% rename from note/IAnnotation.php rename to kiri-note/IAnnotation.php diff --git a/note/Inject.php b/kiri-note/Inject.php similarity index 100% rename from note/Inject.php rename to kiri-note/Inject.php diff --git a/note/Loader.php b/kiri-note/Loader.php similarity index 100% rename from note/Loader.php rename to kiri-note/Loader.php diff --git a/note/LocalService.php b/kiri-note/LocalService.php similarity index 100% rename from note/LocalService.php rename to kiri-note/LocalService.php diff --git a/note/Route/Document.php b/kiri-note/Route/Document.php similarity index 100% rename from note/Route/Document.php rename to kiri-note/Route/Document.php diff --git a/note/Route/Middleware.php b/kiri-note/Route/Middleware.php similarity index 100% rename from note/Route/Middleware.php rename to kiri-note/Route/Middleware.php diff --git a/note/Route/Route.php b/kiri-note/Route/Route.php similarity index 100% rename from note/Route/Route.php rename to kiri-note/Route/Route.php diff --git a/note/Route/Socket.php b/kiri-note/Route/Socket.php similarity index 100% rename from note/Route/Socket.php rename to kiri-note/Route/Socket.php diff --git a/note/Target.php b/kiri-note/Target.php similarity index 100% rename from note/Target.php rename to kiri-note/Target.php