Download the PHP package tomfun/brander-eav without Composer
On this page you can find all versions of the php package tomfun/brander-eav. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tomfun/brander-eav
More information about tomfun/brander-eav
Files in tomfun/brander-eav
Package brander-eav
Short Description helps to create entity that have different attributes (fields) in same database. Also provide integration with elastic search friendsofsymfony/elastica-bundle
License MIT
Informations about the package brander-eav
How it work, what is it
read in russian
Install bundle
just enable elastica bundle and add base configuration
Requirements
- FOSElasticaBundle()
- JMSAopBundle()
- JMSDiExtraBundle($this)
- JS router with generate function
- Twigjs filters (for listing frontend)
- trans
- transchoice
- Compatible gulp task with twigjs compilation
Configuration
First at all
- you must have entity you want to search
- query php class
- search result class
Config example
this expanded as:
also you must implement some interfaces (e.g. SearchableEntityInterface). name of listing service in this case: "brander_eav.elastica.list.sdelka_advert.advert"
if you don't need auto configuration of elastica bundle, you can use simple serialize directive (searchable) and configure elastic search bundle manually:
show auto-generated lists (inner elastica index name / type name):
Routing
in app/config/routing.yml add this lines:
default admin url is /admin/eav/manage/
Security
if you want grant access for admin part for non admin (example: manager)
or for anonymous: or rewrite voter service: brander_eav.security.universal_voter.
also look into ElasticaSkeletonBundle
todo:
- vendor/werkint/stats-bundle/src/Service/Security/Voter/StatsVoter.php supportsAttribute
- backbone.modelbinder -> stickit
wtf: cache.app voter Twig\BranderEAVExtension \Brander\Bundle\EAVBundle\DependencyInjection\BranderEAVExtension::getConfiguration
All versions of brander-eav with dependencies
friendsofsymfony/rest-bundle Version ^2
jms/di-extra-bundle Version ^1
doctrine/orm Version ^2
friendsofsymfony/jsrouting-bundle Version ^1.5.4
doctrine/doctrine-cache-bundle Version ^1
tomfun/brander-elastica-skeleton Version ^1.0.0