guidofaecke/mezzio-doctrine-odm
最新稳定版本:1.0.1
Composer 安装命令:
composer require guidofaecke/mezzio-doctrine-odm
包简介
Doctrine ODM Factories for Mezzio
README 文档
README
Doctrine factories for Mezzio PSR-11 containers.
This package provides a set of factories to be used with containers using the PSR-11 standard for an easy Doctrine ODM (Mongo) integration in a project. This project is based on the work of @Roave.
Installation
The easiest way to install this package is through composer:
$ composer require guidofaecke/mezzio-doctrine-odm
Configuration
In the general case where you are only using a single connection, it's enough to define the entity manager factory:
return [ 'dependencies' => [ 'factories' => [ DocumentManager::class => \GuidoFaecke\MezzioDoctrineOdm\DocumentManagerFactory::class, ], ], ];
Each factory supplied by this package will by default look for a registered factory in the container. If it cannot find one, it will automatically pull its dependencies from on-the-fly created factories. This saves you the hassle of registering factories in your container which you may not need at all. Of course, you can always register those factories when required. The following additional factories are available:
\GuidoFaecke\PsrContainerDoctrine\CacheFactory(doctrine.cache.*)\GuidoFaecke\MezzioDoctrineOdm\ConnectionFactory(doctrine.connection.*)\GuidoFaecke\MezzioDoctrineOdm\ConfigurationFactory(doctrine.configuration.*)\GuidoFaecke\MezzioDoctrineOdm\DriverFactory(doctrine.driver.*)
Each of those factories supports the same static behavior as the entity manager factory. For container specific configurations, there are a few examples provided in the example directory:
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-2-Clause
- 更新时间: 2022-12-15