bankiru / doctrine-api-bundle
此包已被废弃,不再维护。未建议替代包。
面向 Doctrine 的 RPC API 客户端包
2.0
2017-05-23 13:26 UTC
Requires
- php: ~5.5 | ~7.0
- bankiru/doctrine-api-client: ~2.0
- symfony/config: ~2.8 | ~3.0
- symfony/dependency-injection: ~2.8 | ~3.0
- symfony/http-kernel: ~2.8 | ~3.0
- symfony/property-access: ~2.8 | ~3.0
Requires (Dev)
- phpunit/phpunit: ^4.8.35 | ^5.5 | ^6.0
- sensio/framework-extra-bundle: ~3.0
- symfony/monolog-bundle: ^2.8 | ^3.0
- symfony/phpunit-bridge: ^2.8 | ^3.0
- symfony/stopwatch: ~2.8 | ~3.0
- symfony/web-profiler-bundle: ~2.8 | ~3.0
Suggests
- sensio/framework-extra-bundle: For ParamConverter controller arguments support
- symfony/monolog-bundle: For logging API requests
- symfony/stopwatch: For profiling API requests
- symfony/web-profiler-bundle: For integrating to web-profiling bundle
This package is not auto-updated.
Last update: 2022-11-08 05:01:42 UTC
README
Doctrine 面向 RPC 包
此包集成了 doctrine API 库 bankiru/doctrine-api-client
服务
此包提供唯一的公共服务 @bankiru_api.entity_manager
。此服务实现 ApiEntityManager extends ObjectManager
接口
功能
自动包元数据注册
此包自动注册所有存储在 @BundleName\Resources\config\api
位置的 yaml
注释的包。
客户端聚合
此包自动将所有标记为 rpc_client
标签的服务注册到库客户端注册表中,即
bankiru_api.test.client: class: Bankiru\Api\Tests\TestClient arguments: - "@bankiru_api.test.client_mock" tags: - { name: rpc_client, client_name: test_client }
性能分析
此包启用 RPC 客户端性能分析和时间追踪,使用内部 Symfony 组件 - 停表和 Web 调试工具栏。
@Todo: 填充截图
缓存配置
# TTL only api_client: cache: configuration: Bankiru\Api\Doctrine\Test\Entity\TestEntity: 900
# Default api_client: cache: configuration: Bankiru\Api\Doctrine\Test\Entity\TestEntity: enabled: false
# Enabled defaults api_client: cache: configuration: Bankiru\Api\Doctrine\Test\Entity\TestEntity: enabled: true ttl: ~ extra: {}
# Extra keys would be available within API entity cache via CacheConfigurationInterface api_client: cache: configuration: Bankiru\Api\Doctrine\Test\Entity\TestEntity: enabled: true ttl: 900 extra: quick_search: true