imbo/imbo — pull request #89 by christeredvartsen (2012-09-27 10:42:36+00:00)
Title: Metadata cache

This PR includes a simple MetadataCache event listener. The PR also includes some major changes to the internal API for resources and some other classes.

The instance of the `Imbo\Container` is now passed around instead of separate instances of the request, response, database and storage instances. This is to event listeners can have more power over the flow of the application. The MetadataCache listener replaces the response object stored in the container for instance.

Event listeners can now stop event listener propagration and even halt the application using some new methods available on the `$event` instance passed to the `invoke()` methods:

* `stopPropagation($flag)`
* `haltApplication($flag)`

See the MetadataCache for an example on this.

Some other minor changes also managed to sneak in (forgot to change branches, and won't bother fixing it now), but nothing major.