happyr/event-tracker-bundle
最新稳定版本:0.6.1
Composer 安装命令:
composer require happyr/event-tracker-bundle
包简介
README 文档
README
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.
This is similar to Hostnet entity tracker but we do not listen to doctrine lifecycle events, we let you configure your own events.
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.
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
Your user entity need to extend EventUserInterface and you need to make sure doctrine recognize the mapping:
doctrine: orm: resolve_target_entities: Happyr\EventTrackerBundle\Entity\EventUserInterface: Acme\UserBundle\Entity\User
统计信息
- 总下载量: 4.66k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-03-16