2017 © Pedro Peláez
 

library doctrine-elastica-loggable-extension

This library utilizes Gedmo Loggable Doctrine Extension to persist the entity changes into elasticsearch via elastica.io.

image

basster/doctrine-elastica-loggable-extension

This library utilizes Gedmo Loggable Doctrine Extension to persist the entity changes into elasticsearch via elastica.io.

  • Tuesday, January 30, 2018
  • by Basster
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,078 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 22 % Grown

The README.md

Basster/DoctrineElasticaLoggableExtension

SensioLabsInsight Scrutinizer Code Quality Code Coverage Build Status, (*1)

This library utilizes Gedmo Loggable Doctrine Extension to persist the entity changes into elasticsearch via elastica.io., (*2)

To make it work in Symfony with Doctrine Extentions Bundle place the following config in your services.yml:, (*3)

# services.yml

services:
    # overwrite DoctrineExtensionsBundle default listener to inject the ElasticaLoggableListener 
    Stof\DoctrineExtensionsBundle\EventListener\LoggerListener:
      arguments:
        - '@Basster\ElasticaLoggable\Listener\ElasticaLoggableListener'
        - '@security.token_storage'
        - '@security.authorization_checker'
      public: true
      tags:
        - {name: kernel.event_subscriber}

    # register the ElasticaLoggableListener as a service in your application
    Basster\ElasticaLoggable\Listener\ElasticaLoggableListener:
      public: true
      arguments: ['@elastica.type.activity']
      calls:
        - [setAnnotationReader, ['@annotation_reader']]
      tags:
        - { name: doctrine.event_subscriber, connection: default }

    # overwrite doctrine extension service aliases
    stof_doctrine_extensions.event_listener.logger: '@Basster\ElasticaLoggable\Listener\ElasticaLoggableListener'
    stof_doctrine_extensions.listener.loggable: '@Basster\ElasticaLoggable\Listener\ElasticaLoggableListener'

The Versions

30/01 2018

dev-master

9999999-dev

This library utilizes Gedmo Loggable Doctrine Extension to persist the entity changes into elasticsearch via elastica.io.

  Sources   Download

MIT

The Requires

 

The Development Requires

30/01 2018

2.0

2.0.0.0

This library utilizes Gedmo Loggable Doctrine Extension to persist the entity changes into elasticsearch via elastica.io.

  Sources   Download

MIT

The Requires

 

The Development Requires

01/11 2017

1.0

1.0.0.0

This library utilizes Gedmo Loggable Doctrine Extension to persist the entity changes into elasticsearch via elastica.io.

  Sources   Download

MIT

The Requires

 

The Development Requires