setContext (array $context) : object

参数

@param  array  $context    任务上下文

含义

用于设定任务上下文

举栗

$context = [
    'cache_enabled'   => true,
    'cache_directory' => '/tmp/task/download/' . date('Ymd'), 
];

//通过phpcreeper实例调用
$phpcreeper->newTaskMan()->setContext($context);

results matching ""

    No results matching ""