mongator/mongator-bundle
Composer 安装命令:
composer require mongator/mongator-bundle
包简介
Bundle to use Mongator with Symfony2
关键字:
README 文档
README
Bundle to use Mongator ODM with Symfony2 (forked from MandangoBundle).
Getting started
Installation
To install mongator-bundle with Composer, just add the following to your composer.json file:
// composer.json { "require": { "mongator/mongator-bundle": "1.1.*" } }
Then update the dependency
$ php composer.phar update mongator/mongator-bundle
Or you can do this in one command:
$ php composer.phar require mongator/mongator-bundle:1.1.*
Enable the bundle
You need to register the bundle in AppKernel:
// app/AppKernel.php class AppKernel extends Kernel { // ... public function registerBundles() { $bundles = array( // ..., new Mongator\MongatorBundle\MongatorBundle() ); // ... } }
Configure Mongator
Add Mongator to your configuration:
# app/config/config.yml mongator: default_connection: local connections: local: server: mongodb://localhost:27017 database: symfony2_local_%kernel.environment%
Activate the profiler in the developing environment:
# app/config/config_dev.yml mongator: logging: true
Documentation
See the documentation in http://mandango.org/doc/
统计信息
- 总下载量: 65
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-05-03