notamedia / bitrix-agent-manager
Agent manager for Bitrix
Installs: 85
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 3
Forks: 1
Open Issues: 0
Type:bitrix-module
Requires
- php: >=5.4.0
- composer/installers: ~1
This package is not auto-updated.
Last update: 2019-08-19 09:33:24 UTC
README
This module help to create simple workers on the Agents of Bitrix.
Installation
composer require notamedia/bitrix-agent-manager
Usage
Extends abstract class Agent for create your simple workers. For example:
use Notamedia\AgentManager\Agent; class SimpleWorker extends Agent { protected $recurring = false; // Agent is not recurring. protected $parameter; public function __construct($parameter) { parent::__construct(); $this->parameter = $parameter; } protected function init() { // Preparatory operations. } protected function execute() { // The basic logic of worker. } }
And register your Agent in the Bitrix: