Skip to content

Conversation

@PandaLIU-1111
Copy link
Collaborator

使用 pdo proxy 需要在 hyperf 项目内 /config/autoload/annotations.php 增加以下内容

return [
    'scan' => [
        'class_map' => [
            Connector::class => BASE_PATH . '/vendor/seata/seata/src/Rm/DataSource/ClassMap/Connector.php',
        ],
    ],
];

LoggerInterface::class => StdoutLogger::class,
// DataSourceProxy::class => DataSourceProxyFactory::class,
// DataSourceProxy::class => DataSourceProxyFactory::class,
],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'publish' => [ [ 'id' => 'config', 'description' => 'The config of message client.', 'source' => __DIR__ . '/../publish/seata.php', 'destination' => BASE_PATH . '/config/autoload/seata.php', ], ],这里要不要把publish 完善一下?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hyperf,现在你在 ConfigProvider 加上 class_map 也没用,ConfigProvider 里面我没记错他是没支持 class_map 的

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants