-
Notifications
You must be signed in to change notification settings - Fork 0
Conversation
@blankqwq
Copy link
Copy Markdown
@blankqwq
blankqwq
commented
Apr 25, 2020
Member
- 提高系统稳定性
- 充分利用php7特性
- 优化代码中不满足psr-7等不可扩展问题
- 优化代码中冗余结构
- 更新SessionHandler和添加FileSystem 等
- 重整代码结构
blankqwq
commented
May 11, 2020
Member
Author
- 优化装饰器,和监听者
- 容器内部有冗余单例需要清理
- 连接单例需要disconnect
- 增加容器健壮性,添加依赖注入缓存,解决递归依赖问题
- 增加基础组件Base/Trait,逐步增加helper
blankqwq
commented
May 20, 2020
Member
Author
下一个版本思路
思路:建立proxy代理器,用于桥接相对于复杂的驱动器
使用场景:
-
redis读写分离,使用redis基类会使得操作过于复杂,使得RedisDriver驱动臃肿。这时候我们可以根据配置使用不同的proxy进行代理设置对应驱动,将代理设置为驱动,进行抽象
-
使用的时候直接调用的是代理后的driver,这样职责分离并且容易扩展?
问题:
-
如何实现代理?
-
代理可以变成任意组件/驱动吗?
-
代理是否会导致框架紊乱?
-
代理是否可以少量修改达到目的?
-
本身driver的使用是在于内部的handler,这么做是否有意义?
目标:
FileDriver => 代理 => (FileSystem对象)配置不同则clone
RedisDriver => 代理 =>Redis对象(redis为全局共享对象)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.