etshy / automapper-bundle
将 etshy/automapper 整合到 symfony 项目的Bundle
v0.1.5
2023-06-28 22:18 UTC
Requires
- php: ^8.1
- etshy/automapper: ^1.0
- symfony/framework-bundle: ^5.0|^6.0
Requires (Dev)
- phpunit/phpunit: ^10.0
- roave/security-advisories: dev-latest
- symfony/phpunit-bridge: ^6.2
README
将我的 Automapper 库作为一个Bundle整合。
安装
composer require etshy/automapper-bundle
使用
实现 Etshy\AutoMapperBundle\EtshyAutoMapperConfiguratorInterface
以暴露 Etshy\AutoMapper\Configuration\AutoMapperConfiguration
。
然后你可以在 基础库 中注册你的映射作为状态
要映射对象,你必须在你的类中注入 Etshy\AutoMapper\AutoMapperInterface
。
这个Bundle还处于早期访问阶段!