eventjet / psr-container-doctrine-odm
Doctrine ODM factory for PSR-11 container
0.1.0
2021-08-01 15:17 UTC
Requires
- php: ^7.4 || ^8.0
- doctrine/mongodb-odm: ^2.0
- mongodb/mongodb: ^1.6
- psr/container: ^1.1 || ^2.0
- roave/psr-container-doctrine: ^3.0
- thecodingmachine/safe: ^1.2
Requires (Dev)
- eventjet/coding-standard: ^3.1
- infection/infection: ^0.24.0
- laminas/laminas-servicemanager: ^3.4
- maglnet/composer-require-checker: ^3.3
- phpstan/extension-installer: ^1.0
- phpstan/phpstan: ^0.12.32
- phpstan/phpstan-phpunit: ^0.12.11
- phpstan/phpstan-strict-rules: ^0.12.2
- phpunit/phpunit: ^9.3
- psalm/plugin-phpunit: ^0.16.1
- thecodingmachine/phpstan-safe-rule: ^1.0
- vimeo/psalm: ^4.0
This package is auto-updated.
Last update: 2024-11-29 06:35:47 UTC
README
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.
Installation
$ composer require eventjet/psr-container-doctrine-odm
Configuration
The most basic way is just defining the factory for the DocumentManager
. Everything else is taken from the
configuration.
return [ 'dependencies' => [ 'factories' => [ DocumentManager::class => DocumentManagerFactory::class, ], ], ];
Example Configuration
A full example of the configuration can be found in the examples folder.
The configuration style is heavily based
on roave/psr-container-doctrine
to retain the familiarity. Also, the configuration should be compatible with the
'DoctrineMongoODMModule for Laminas.