This repository contains the PHP Supervision and Symfony 2 Supervision Bundle that allows you to add supervision feature to your application.
This version of the bundle requires Symfony 2.7+.
Installation is a quick 3 step process:
- Download phppro/supervision using composer
- Enable the Bundle
- Configure the SupervisionBundle
Add phppro/supervision dependency to your composer.json :
# composer.json
{
"require": {
"phppro/supervision": "1.*"
},
...
}Then update:
$ php composer.phar update phppro/supervisionComposer will install the bundle to your project's vendor/phppro/supervision directory and additional required
packages.
Enable the bundle in the kernel:
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Phppro\Supervision\SupervisionBundle(),
);
}# app/routing.yml
supervision:
resource: "@SupervisionBundle/Controller/"
type: annotation# app/config/config.yml
supervision:Contact the phppro dev team for further information.