Download the PHP package ppokatilo/elastica-entity-mapping-bundle without Composer
On this page you can find all versions of the php package ppokatilo/elastica-entity-mapping-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ppokatilo/elastica-entity-mapping-bundle
More information about ppokatilo/elastica-entity-mapping-bundle
Files in ppokatilo/elastica-entity-mapping-bundle
Package elastica-entity-mapping-bundle
Short Description Automatically updates elasticsearch mappings
License MIT
Homepage http://github/SHyx0rmZ/elastica-entity-mapping-bundle
Informations about the package elastica-entity-mapping-bundle
elastica-entity-mapping-bundle
An Symfony2 bundle that automatically updates your Elasticsearch mappings or notifies you of changes.
How it works
An elastica client service is modified to be constructed using a factory. The factory reads Composer's
autoload files to know about all your dependencies. It will then scan each directory for a subdirectory
called Entity
and search the PHP files in that subdirectory for the @ElasticsearchMapping
annotation.
When instantiating the elastica client service, the factory will first check if the mapping of registered entities on disk differs from that in Elasticsearch. If so, it will either throw an exception or try to update the mapping automatically.
Example usage
-
app/AppKernel.php
-
app/config/config_dev.yml
- vendor/example/entitybundle/ExampleEntity.php
All versions of elastica-entity-mapping-bundle with dependencies
doctrine/annotations Version 1.*
ppokatilo/project-scanner Version ~1.0
psr/log Version ~1.0
ruflin/elastica Version *
symfony/config Version ~2.0
symfony/dependency-injection Version ~2.0
symfony/finder Version ~2.0
symfony/http-kernel Version ~2.0