2017 © Pedro Peláez
 

symfony-bundle event-tracker-bundle

image

happyr/event-tracker-bundle

  • Thursday, November 9, 2017
  • by Nyholm
  • Repository
  • 1 Watchers
  • 2 Stars
  • 989 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 9 Versions
  • 15 % Grown

The README.md

Happyr Event Tracker Bundle

This bundle helps you log changes in your application. It is used to connect an entity and user with an event and time. You may later query this log to get the history of the event. Example when you want to know who edited the blog post., (*1)

This is similar to Hostnet entity tracker but we do not listen to doctrine lifecycle events, we let you configure your own events., (*2)

Usage

Install the bundle with composer require happyr/event-tracker-bundle, and let your events implement TrackableEventInterface. Then you only need to configure for which events you want to have tracked., (*3)

``` yml happyr_event_tracker: events: acme.blog_post.created: namespace: blogpost action: created acme.blog_post.updated: namespace: blogpost action: updated acme.comment.created: namespace: comment action: created, (*4)


Your user entity need to extend EventUserInterface and you need to make sure doctrine recognize the mapping: ``` yml doctrine: orm: resolve_target_entities: Happyr\EventTrackerBundle\Entity\EventUserInterface: Acme\UserBundle\Entity\User

The Versions

15/03 2016
26/08 2015
21/08 2015
11/08 2015
16/03 2015