dev-master
9999999-devAPI Platform MongoDB Integration
MIT
The Requires
by Andrei Meshchanchuk
API Platform MongoDB Integration
This bundle provides a simple integration of the Doctrine MongoDB into API Platform framework., (*1)
Install the latest version with, (*2)
$ composer require talaka/api-platform-mongodb-bundle
Register the bundle in app/AppKernel.php
:, (*3)
``` php <?php // app/AppKernel.php, (*4)
public function registerBundles() { $bundles = array( // ..., (*5)
new Talaka\APIPlatform\MongoDBBundle\TalakaAPIPlatformMongoDBBundle(), );
}, (*6)
Configure --------- `app/config/schema.yml` ``` yaml annotationGenerators: - Talaka\APIPlatform\MongoDBBundle\AnnotationGenerator\DoctrineMongoDBAnnotationGenerator namespaces: entity: AppBundle\Document # The default namespace for documents,
$ bin/schema generate-types src/ app/config/schema.yml
The TalakaAPIPlatformMongoDBBundle is licensed under the MIT license., (*7)
API Platform MongoDB Integration
MIT