定制 tomfun/brander-elastica-skeleton 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

tomfun/brander-elastica-skeleton

最新稳定版本:v1.0.1

Composer 安装命令:

composer require tomfun/brander-elastica-skeleton

包简介

helps to create query for elastic search friendsofsymfony/elastica-bundle

README 文档

README

Configurations:

# app/config/config.yml
doctrine_cache:
  aliases:
    brander.bundle.elasticaskeleton.cache_storage: my_apc_cache # or other

  providers:
    my_apc_cache:
      type: apc # or other cacher
      namespace: my_apc_cache_ns
#     namespace: "%kernel.root_dir%/%kernel.environment%/%assets_version%"
<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle(),
            new \Brander\Bundle\ElasticaSkeletonBundle\BranderElasticaSkeletonBundle(),
        );
        // ...
    }
    // ...
}

This just doctrine cache bundle configuration BranderElasticaSkeletonBundle require some cache adapter by alias brander.bundle.elasticaskeleton.cache_storage

Example of list service (wrapper over fos elastica finder)

# services.yml
services:
 my_bundle.elastica_list.entity:
   class: Iwin\Bundle\UserBundle\Entity\Query\UserElasticaList
   parent: brander.bundle.elasticaskeleton.list # elastica skeleton abstract
   arguments:
     - @fos_elastica.finder.iwin_user.user # fos elastica finder

统计信息

  • 总下载量: 486
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-08-04