Permalink
Commits on Apr 16, 2012
  1. [Listener] Support additional indexable callback types

    Support service/method tuples as indexable callbacks. Closures are also supported, although they cannot be injected by the service container.
    
    The indexable callback is now injected via a setter and validated when set (instead of during event processing).
    jmikola committed Apr 10, 2012
Commits on Apr 10, 2012
  1. [Listener] Allow conditional indexing based on callback method

    Added optional is_indexable_callback config param to persistence. If this is a method on the entity, the listener will only process it if the method returns true. Also updated documentation.
    r1pp3rj4ck committed with jmikola Apr 5, 2012
  2. Merge pull request #92 from Exercise/suggested-deps

    Add suggested Doctrine and Propel deps for test suite coverage
    jmikola committed Apr 10, 2012
Commits on Mar 23, 2012
Commits on Mar 13, 2012
  1. Merge pull request #80 from Exercise/repopulate-index

    Allow single indexes and types to be repopulated
    jmikola committed Mar 13, 2012
Commits on Mar 12, 2012
  1. Update Elastica dependency for Resetter changes

    Resetter depends on Elastica_Type::delete(), which was a recent addition to Elastica. See: af6c92b92e5374f92323a65cb6ea957b74fcb1dd
    jmikola committed Mar 12, 2012
  2. Enable PopulateCommand to target indexes and types

    This makes the Populator service obsolete.
    jmikola committed Mar 12, 2012
  3. [Provider] Lazy-loaded provider services must have public definitions

    If provider definitions are not public, they will be removed by RemoveUnusedDefinitionsPass when compiling the container.
    jmikola committed Mar 12, 2012
  4. [Provider] ProviderRegistry should return indexed provider arrays

    Since Provider instances do not know the index or type for which they are responsible, it's helpful for the ProviderRegistry to include that information when returning multiple providers.
    jmikola committed Mar 10, 2012
  5. [Provider] Change provider construction (possible BC break)

     * Created AbstractProvider class (for all DB services), which handles the default batch_size option.
     * The logger Closure is now optional for populate().
     * Removed unused Elastica_Type argument from Provider constructors.
     * Added unit tests for Doctrine's AbstractProvider class.
     * The extra argument (ManagerRegistry) for Doctrine providers is now an appended constructor argument, so the extension no longer needs to use different replacement indexes for Propel/Doctrine providers.
    jmikola committed Mar 9, 2012
  6. Allow Resetter to target specific indexes and types (BC break)

    The original reset() method is now resetAllIndexes(). Additionally, new resetIndex() and resetIndexType() methods were introduced.
    jmikola committed Mar 9, 2012
  7. [Provider] Create ProviderRegistry service (BC break)

    This introduces a registry service for persistence providers.
    
    Previously, tagging one or more provider services would cause AddProviderPass to clobber the default providers created by the bundle's extension class. Now, the extension class tags its created providers and allows them to be registered via RegisterProvidersPass just like custom providers.
    
    BC break: Custom providers tagged "foq_elastica.provider" must now specify a "type" attribute on their tag. An "index" attribute is optional (the default ES index will be used by default).
    jmikola committed Mar 5, 2012
  8. Refactor IndexManager construction (preserves API)

    Provide the default index name rather than the service itself. Additionally, inject references to each index by name instead of the definitions.
    jmikola committed Mar 2, 2012
Commits on Mar 8, 2012
  1. Merge branch '2.0'

    richardmiller committed Mar 8, 2012
Commits on Mar 7, 2012
  1. Merge branch '2.0'

    Conflicts:
    	composer.json
    richardmiller committed Mar 7, 2012
  2. Merge branch '2.0'

    jmikola committed Mar 7, 2012
  3. Configure Travis CI

    This also changes the test suite and bootstrap to depend on packages installed by composer.
    jmikola committed Mar 7, 2012
Commits on Mar 4, 2012
  1. Merge branch '2.0'

    jmikola committed Mar 4, 2012
  2. Add MIT license

    jmikola committed Mar 4, 2012
  3. Add composer support.

    daFish committed with jmikola Mar 3, 2012
Commits on Feb 27, 2012
  1. Merge branch '2.0'

    richardmiller committed Feb 27, 2012