Download the PHP package innmind/homeostasis-bundle without Composer
On this page you can find all versions of the php package innmind/homeostasis-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download innmind/homeostasis-bundle
More information about innmind/homeostasis-bundle
Files in innmind/homeostasis-bundle
Package homeostasis-bundle
Short Description App health regulator bundle
License MIT
Homepage http://github.com/Innmind/HomeostasisBundle
Informations about the package homeostasis-bundle
Homeostasis Bundle
master |
develop |
---|---|
Installation
Enable the bundle by adding the following line in your app/AppKernel.php of your project:
Then you need to specify the an actuator:
The actuator service will need to implement the interface Innmind\Homeostasis\Actuator
.
By default it uses the cpu and symfony logs as factors, but you can your own via the factors
config key. To add a factor you need to create a service tagged with innmind.homeostasis.factor
and with an alias
attribute, this alias will need to be a key in the factors
config. If you define a factory on your service then the data under your alias in the config will be injected in the factory service.
Usage
To trigger the whole mechanism you just have to call the following code somewhere in your app (for exemple on console.terminate
when an amqp consumer finished his job).
All versions of homeostasis-bundle with dependencies
innmind/homeostasis Version ^2.0
symfony/dependency-injection Version ~3.0
symfony/http-kernel Version ~3.0
symfony/config Version ~3.0
symfony/yaml Version ~3.0