Skip to content
This repository has been archived by the owner on Aug 12, 2019. It is now read-only.

notamedia/bitrix-agent-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Agent manager for Bitrix

Build Status Latest Stable Version Total Downloads License

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:

Agents list