Fix examples from README.md
nokimaro opened this issue · 0 comments
nokimaro commented
Can you check/fix code examples of basic usage from README.md?
Error after updating to latest version via composer
php /home/www/yii watcher-daemon
PHP Fatal error: Class console\controllers\WatcherDaemonController contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (vyants\daemon\controllers\WatcherDaemonController::getDaemonsList)
my WatcherDaemonController.php (based on readme example)
<?php
namespace console\controllers;
class WatcherDaemonController extends \vyants\daemon\controllers\WatcherDaemonController
{
/**
* @return array
*/
protected function defineJobs()
{
sleep(1);
$daemons = [
['className' => 'PostbackDaemonController', 'enabled' => true],
];
return $daemons;
}
}