Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: added pdo proxy #30

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

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',
        ],
    ],
];

@@ -40,7 +41,7 @@ public function __invoke(): array
ResourceManagerInterface::class => DefaultResourceManager::class,
// GlobalTransactionScanner::class => GlobalTransactionScannerFactory::class,
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