thecodingmachine / tdbm-universal-module
thecodingmachine/tdbm 的跨框架模块
dev-master / 5.0.x-dev
2017-12-15 13:55 UTC
Requires
- php: >=7.1
- container-interop/service-provider: ^0.4
- mouf/classname-mapper: ^1.0.1
- thecodingmachine/common-factories: ^0.4
- thecodingmachine/dbal-universal-module: ^0.4
- thecodingmachine/psr-6-doctrine-bridge-universal-module: ^1.1
- thecodingmachine/stash-universal-module: ^1.1
- thecodingmachine/symfony-console-universal-module: ^0.4
- thecodingmachine/tdbm: ^5
Requires (Dev)
- mnapoli/simplex: ^0.4.1
- phpstan/phpstan: ^0.9
- phpunit/phpunit: ^6.4.3
- satooshi/php-coveralls: ^1.0.1
- squizlabs/php_codesniffer: ^3.2
- thecodingmachine/discovery: ^1.2
- thecodingmachine/phpstan-strict-rules: ^0.9
This package is auto-updated.
Last update: 2024-09-06 23:51:57 UTC
README
TDBM通用模块
本包将TDBM集成到任何与container-interop兼容的框架/容器中。
教程
寻找入门教程?请查看TDBM 5 + container-interop/service-providers安装指南。
安装
composer require thecodingmachine/tdbm-universal-module
安装完成后,您需要将 TheCodingMachine\TDBM\DI\TdbmServiceProvider
注册到您的容器中。
如果您的容器支持 thecodingmachine/discovery 集成,您无需做任何事情。否则,请参考您的框架或容器的文档以了解如何注册 服务提供者。
简介
此服务提供者旨在将TDBM集成到您的应用程序中。它将在控制台(vendor/bin/app_console
)中注册“tdbm:generate”命令,并在容器中注册所有生成的DAO。
预期值/服务
此 服务提供者 期望以下配置/服务可用
提供的服务
此 服务提供者 提供以下服务
为您的每个DAO创建一个服务。服务的名称是您DAO的完全限定名。
如果您有由TDBM生成的App\Dao\UserDao
类,则该类也可以通过$container->get("App\Dao\UserDao")
在容器中使用。
扩展服务
此 服务提供者 扩展以下服务