Giter Club home page Giter Club logo

zetabundle's Introduction

ZetaBundle

Integrate Zeta Components into your Symfony2 application using the ZetaBundle.

Supported Components

Most of the Zeta Components can be used out of the box with our symfony2 application. However there are some exceptions which need configuration. These components are configured with the Dependency Injection using this bundle:

  • Search

Configuring ZetaBundle

Add this bundle to your application's kernel:

// application/ApplicationKernel.php
public function registerBundles()
{
    $bundles = array(
        // ...
        new Bundle\ZetaBundle\ZetaBundle(),
        // ...
    );
}

Open up your src/autoload.php file and add the Zeta Components Autoloader:

require_once "Base/base.php";
spl_autoload_register( array( 'ezcBase', 'autoload' ) );

This tells Syfmony2 where it can locate your ezcBase class. Since ZetaComponents does not yet follow the PSG-0 Naming standards its autoloader has to be attached manually.

See the Zeta Components documentation for more information how to enable autoloading.

Configuring Search

If you want to use ezcSearch you have to activate in your Symfony2 application/config/config.yml:

zeta:
  search:
    handler: zeta.search.handler.solr

This sets up a ezcSearch session using Solr at "localhost:8983/solr". You can overwrite the Solr configuration values by setting:

zeta.search:
  handler: zeta.search.handler.solr
  solr:
    host: localhost
    port: 8983
    location: /solr

You can also use the Zend_Search_Lucene component. This requires ZF to be in your include path and bootstrapped by yourself inside Symfony2. A good place for this is probably src/autoload.php.

zeta.search:
  handler: zeta.search.handler.zendlucene
  zendlucene:
    data_dir: /tmp/lucene

The data_dir value is optional, pointing to "/tmp/lucene" by default.

Current ezcSearch Limitations

You have to be aware of the following limitations with ezcSearch currently:

  • Namespaced classes won't work (yet)
  • The Id Property has to be public
  • No constructor arguments allowed

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.