uawdijnntqw1x1x1
IP : 216.73.216.107
Hostname : toronto-dev2
Kernel : Linux toronto-dev2 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
srv
/
users
/
craft4
/
apps
/
craft4-newsite-space
/
vendor
/
yiisoft
/
yii2-queue
/
src
/
.
/
cli
/
Action.php
/
/
<?php /** * @link https://www.yiiframework.com/ * @copyright Copyright (c) 2008 Yii Software LLC * @license https://www.yiiframework.com/license/ */ namespace yii\queue\cli; use yii\base\Action as BaseAction; use yii\base\InvalidConfigException; use yii\console\Controller as ConsoleController; /** * Base Command Action. * * @author Roman Zhuravlev <zhuravljov@gmail.com> */ abstract class Action extends BaseAction { /** * @var Queue */ public $queue; /** * @var Command|ConsoleController */ public $controller; /** * @inheritdoc */ public function init() { parent::init(); if (!$this->queue && ($this->controller instanceof Command)) { $this->queue = $this->controller->queue; } if (!($this->controller instanceof ConsoleController)) { throw new InvalidConfigException('The controller must be console controller.'); } if (!($this->queue instanceof Queue)) { throw new InvalidConfigException('The queue must be cli queue.'); } } /** * @param string $string * @return string */ protected function format($string) { return call_user_func_array([$this->controller, 'ansiFormat'], func_get_args()); } }
/srv/users/craft4/apps/craft4-newsite-space/vendor/yiisoft/yii2-queue/src/./cli/Action.php