Download the PHP package gnugat/search-engine-bundle without Composer
On this page you can find all versions of the php package gnugat/search-engine-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gnugat/search-engine-bundle
More information about gnugat/search-engine-bundle
Files in gnugat/search-engine-bundle
Package search-engine-bundle
Short Description A gnugat/search-engine integration in symfony
License MIT
Informations about the package search-engine-bundle
SearchEngine Bundle
A gnugat/search-engine integration in Symfony.
Caution: this component does not provide actual SearchEngine features, if you're looking for one you should rather have a look at ElasticSearch, Solr, etc. See
gnugat/search-engine
's' website for more information.
This bundle provides the following services:
gnugat_search_engine.criteria_factory
: createsCriteria
from Request query parametersgnugat_search_engine.identifier_engine
: an instance ofIdentifierEngine
gnugat_search_engine.search_engine
: an instance ofSearchEngine
gnugat_search_engine.type_sanitizer
: an instance ofTypeSanitizer
In order for it to work, you need to:
- create an implementations of
Fetcher
(or install an existing one, like PommSearchEngine) - define it as a service with the name
gnugat_search_engine.fetcher
Also, to be able to find anything SearchEngine
and IdentifierEngine
both need you to add information about available resources.
This can be done by implementating SelectBuilder
and define it as a service, for example:
We can finally use it, for example in a controller:
Tip: instead of using these services directly in the controller, we can inject them in other services.
Installation
To install gnugat/search-engine-bundle
, run the following command:
composer require gnugat/search-engine-bundle:^0.3
Then register Gnugat\SearchEngineBundle\GnugatSearchEngineBundle
in AppKernel.php
Further documentation
You can see the current and past versions using one of the following:
- the
git tag
command - the releases page on Github
- the file listing the changes between versions
You can find more documentation at the following links:
- copyright and MIT license
- versioning and branching models
- contribution instructions
All versions of search-engine-bundle with dependencies
symfony/http-kernel Version ^2.3|^3.0
symfony/dependency-injection Version ^2.3|^3.0
symfony/config Version ^2.3|^3.0
symfony/yaml Version ^2.3|^3.0