PHP code example of yeebase / supervisor
1. Go to this page and download the library: Download yeebase/supervisor library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
yeebase / supervisor example snippets
...
use Yeebase\Supervisor\Service\SupervisorService;
/**
* My funky class that shows details about configured supervisor processes
*/
class MyFunkyController extends AbstractBaseController {
/**
* @Flow\Inject
* @var SupervisorService
*/
protected $supervisorService;
...
function showVersionAction() {
$this->view->assign('version', $this->supervisorService->getVersion();
}