tweedegolf / plantbundle
Bundle to work with tweede golf's YGA plant database in different projects.
Installs: 835
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 2
Open Issues: 0
pkg:composer/tweedegolf/plantbundle
Requires
- friendsofsymfony/elastica-bundle: ~3.0
- symfony/symfony: ~2.6
This package is auto-updated.
Last update: 2023-06-29 10:26:53 UTC
README
Bundle to work with the YGA plant database in different projects.
Installation
Using [Composer][composer] add the bundle to your requirements:
{ "require": { "tweedegolf/plantbundle": "dev-master" } }
Configuration
Set the elastica_host and elastica_port parameters:
tweede_golf_plant:
elastica_host: 127.0.0.1
elastica_port: 9200
Set the following parameters for the plant database to their correct values in your parameters.yml
dbtool_driver
dbtool_host
dbtool_name
dbtool_user
Usage
- Use the command
bin/symfony elastica:refresh
that the bundle offers to build / refresh the plant search index - Use the PlantRetriever as repository for the plant database
- Use the PlantFinder (or extend it) to search in the plant search index
PlantRetriever and PlantProxy
todo
PlantFinder
todo