Comments (2)
开启aspect 看下runtime 里面的代理类, 这个不太好搞, trait 构造函数没法parent:: 调用, 要处理有点麻烦
from hyperf.
<?php
declare (strict_types=1);
namespace EasyWeChat\OpenWork;
use EasyWeChat\Kernel\Contracts\AccessToken as AccessTokenInterface;
use EasyWeChat\Kernel\Contracts\Server as ServerInterface;
use EasyWeChat\Kernel\Exceptions\HttpException;
use EasyWeChat\Kernel\HttpClient\AccessTokenAwareClient;
use EasyWeChat\Kernel\HttpClient\Response;
use EasyWeChat\Kernel\Traits\InteractWithCache;
use EasyWeChat\Kernel\Traits\InteractWithClient;
use EasyWeChat\Kernel\Traits\InteractWithConfig;
use EasyWeChat\Kernel\Traits\InteractWithHttpClient;
use EasyWeChat\Kernel\Traits\InteractWithServerRequest;
use EasyWeChat\OpenWork\Contracts\Account as AccountInterface;
use EasyWeChat\OpenWork\Contracts\Application as ApplicationInterface;
use EasyWeChat\OpenWork\Contracts\SuiteTicket as SuiteTicketInterface;
use Overtrue\Socialite\Contracts\ProviderInterface as SocialiteProviderInterface;
use Overtrue\Socialite\Providers\OpenWeWork;
use Symfony\Contracts\HttpClient\Exception\ClientExceptionInterface;
use Symfony\Contracts\HttpClient\Exception\DecodingExceptionInterface;
use Symfony\Contracts\HttpClient\Exception\RedirectionExceptionInterface;
use Symfony\Contracts\HttpClient\Exception\ServerExceptionInterface;
use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface;
use function array_merge;
class Application implements ApplicationInterface
{
use \Hyperf\Di\Aop\ProxyTrait;
use \Hyperf\Di\Aop\PropertyHandlerTrait;
function __construct(\EasyWeChat\Kernel\Contracts\Config|array $config)
{
$this->__handlePropertyHandler(__CLASS__);
}
use InteractWithCache;
use InteractWithClient;
use InteractWithConfig;
use InteractWithHttpClient;
use InteractWithServerRequest;
protected ?ServerInterface $server = null;
protected ?AccountInterface $account = null;
protected ?Encryptor $encryptor = null;
protected ?SuiteEncryptor $suiteEncryptor = null;
protected ?SuiteTicketInterface $suiteTicket = null;
protected ?AccessTokenInterface $accessToken = null;
protected ?AccessTokenInterface $suiteAccessToken = null;
protected ?AuthorizerAccessToken $authorizerAccessToken = null;
public function getAccount() : AccountInterface
{
from hyperf.
Related Issues (20)
- 协程风格websocket服务不能同时处理http请求吗? HOT 4
- [ERROR] DI Reflection Manager collecting class reflections failed. [BUG] HOT 5
- [BUG] hyperf 3.1 nacos配置中心grpc后报错
- [BUG] Hyperf\Flysystem\OSS\Adapter 文件不存在 HOT 4
- [QUESTION] 自定义进程怎么监听term信号 HOT 6
- [QUESTION] 自定义进程怎么监听term信号 (烦请看完内容可好,我知道使用signal 组件) HOT 5
- Higher CPU usage compare to swoole itself HOT 5
- 框架启动后,队列定时任务一直无法被消费,Xdebug 一直陷入无限循环 HOT 1
- 模型boot方法无法获取Context::get()上下文环境变量
- 协程上下文获取问题 HOT 5
- [QUESTION] Swoole does not have a toolchain for flame graphs. How can we identify the cause of OOM?
- [BUG] updateOrInsert第二个参数使用默认值生成的sql有问题
- [BUG] phar 运行报错
- [BUG] 验证器decimal不工作 HOT 1
- [QUESTION] 希望支持游标分页 HOT 2
- [FEATURE] \Hyperf\Constants\Annotation\Message key目前仅支持全小写格式,建议key的格式可以多样化 HOT 1
- Rabbitmq消费者
- 有没有分库分表的支持呢 HOT 2
- [FEATURE] 数据库迁移,迁移文件类名优化
- [QUESTION] How to validate prohibited? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hyperf.