Doctrine ODM factory for PSR-11 container
This package provides additional factories for Doctrine MongoDB ODM on top of
roave/psr-container-doctrine to be used with containers
using the PSR-11 standard.
$ composer require eventjet/psr-container-doctrine-odm
The most basic way is just defining the factory for the
DocumentManager. Everything else is taken from the
return [ 'dependencies' => [ 'factories' => [ DocumentManager::class => DocumentManagerFactory::class, ], ], ];
A full example of the configuration can be found in the examples folder.