集成 think-ORM 的 symfony bundle thinkorm-bundle
thinkorm-bundle
Symfony Think Orm Bundle
关于
thinkorm-bundle
允许在你symfony使用thinkorm. 所
安装
$ composer require ccwwwonebyone/thinkorm-bundle
使用
在 config/bundles.php
添加onethinkorm-bundle
return [
//...
OneThink\OrmBundle\OneThinkOrmBundle::class => ['all' => true],
]
配置
移动 vendor/ccwwonebyone/thinkorm-bundle/config/packages/one_think_orm.yaml
到 config/packages/one_think_orm.yaml
新增 .env
配置信息
DB_HOSTNAME=host
DB_USERNAME=username
DB_PASSWORD=password
DB_DATABASE=database
APP_DEBUG=true
you can see ThinkORM开发指南 了解更多配置,和如何使用thinkorm
License
Released under the MIT License, see LICENSE.
本作品采用《CC 协议》,转载必须注明作者和本文链接
推荐文章: