PHP code example of eschmar / taskchain-bundle
1. Go to this page and download the library: Download eschmar/taskchain-bundle 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/ */
eschmar / taskchain-bundle example snippets
new Eschmar\TaskChainBundle\EschmarTaskChainBundle(),
namespace Acme\HelloBundle\Task;
use Eschmar\TaskChainBundle\Task\TaskAbstract;
class TestTask extends TaskAbstract
{
protected function init() {
$this->name = 'Test Task';
$this->groups[] = 'test';
}
public function execute() {
sleep(3);
return true;
}
}
shell
php app/console taskchain [<group>] [--inset]