mggflow/vkflow

v2.0.0 2023-03-06 15:38 UTC

This package is auto-updated.

Last update: 2024-05-06 17:59:40 UTC


README

About

This package is core of backend logic of VKFLOW service.

Usage

To install:

composer require mggflow/vkflow

Example of performing Task:

// Implements Interfaces/TaskQueue.
$taskQueue = new TaskQueue();
// Implements Interfaces/TaskFabric.
$taskFabric = new TaskFabric();
// Implements Interfaces/TaskResultHandlerFabric.
$taskResultHandlerFabric = new TaskResultHandlerFabric();
// Implements Interfaces/ProfileData.
$profileData = new ProfileData();

$worker = new Worker($profileData, $taskQueue, $taskFabric, $taskResultHandlerFabric);
$worker->perform();