Download the PHP package guidofaecke/mezzio-doctrine-odm without Composer
On this page you can find all versions of the php package guidofaecke/mezzio-doctrine-odm. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download guidofaecke/mezzio-doctrine-odm
More information about guidofaecke/mezzio-doctrine-odm
Files in guidofaecke/mezzio-doctrine-odm
Package mezzio-doctrine-odm
Short Description Doctrine ODM Factories for Mezzio
License BSD-2-Clause
Informations about the package mezzio-doctrine-odm
mezzio-doctrine-odm: Doctrine ODM Factories for Mezzio (PSR-11 Containers)
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:
Configuration
In the general case where you are only using a single connection, it's enough to define the entity manager factory:
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:
- (doctrine.cache.*)
- (doctrine.connection.*)
- (doctrine.configuration.*)
- (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:
- Aura.Di
- PimpleInterop
- Laminas\ServiceManager
All versions of mezzio-doctrine-odm with dependencies
doctrine/annotations Version ^1.14.1
doctrine/cache Version ^1.13
doctrine/common Version ^3.4.3
doctrine/mongodb-odm Version ^2.4
doctrine/persistence Version ^2.5.5
psr/cache Version ^1.0.1 || ^2.0.0 || ^3.0.0
psr/container Version ^1.0 || ^2.0