Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gtrias/watchbundle


https://github.com/gtrias/watchbundle

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

WatchBundle
===========

This bundle defines dynamic action to be executed when something in your entities change.
It works setting a field to watch and executing an action from a custom service.

The service must receive the changed entity, execute any piece of code and mark
the given entity changed criteria in state not to be executed again.

The way we will handle the changed state is implementing some method
on target entity, something like ``hasExpired`` or ``hasChanged``. At the moment it's
responsability of the target entity to know its changed state.

Setup
-----

In order to make this bundle work you has to set up a cronjob running
the check command.