Skip to content

Instantly share code, notes, and snippets.

#
# File is "indented" using multiple of 4 spaces
#
# Specify the docker image to use (only used if using docker runners)
# See: http://doc.gitlab.com/ee/ci/docker/using_docker_images.html
# From https://hub.docker.com/r/kaffineaddict/gitlabcakephp3/ - we could use image: kaffineaddict/gitlabcakephp3
image: php:7.2
# The docker services to configure
# See: http://doc.gitlab.com/ee/ci/docker/using_docker_images.html#what-is-service
<?php
namespace common\models\helpers\queue;
use Yii;
use yii\base\Behavior;
use yii\queue\Queue;
class CurrentJobBehavior extends Behavior
{
public $current;
<?php
namespace common\models\helpers\queue;
use common\models\Product;
use yii\base\BaseObject;
use yii\queue\JobInterface;
/**
* This is the model create job in the queue