瀏覽代碼

Deprecate the method and warn against using it

tags/v9.0beta1
Joas Schilling 8 年之前
父節點
當前提交
ef73aedd7e
共有 2 個文件被更改,包括 4 次插入0 次删除
  1. 2
    0
      lib/private/backgroundjob/joblist.php
  2. 2
    0
      lib/public/backgroundjob/ijoblist.php

+ 2
- 0
lib/private/backgroundjob/joblist.php 查看文件

@@ -139,6 +139,8 @@ class JobList implements IJobList {
* get all jobs in the list
*
* @return IJob[]
* @deprecated 9.0.0 - This method is dangerous since it can cause load and
* memory problems when creating too many instances.
*/
public function getAll() {
$query = $this->connection->getQueryBuilder();

+ 2
- 0
lib/public/backgroundjob/ijoblist.php 查看文件

@@ -64,6 +64,8 @@ interface IJobList {
*
* @return \OCP\BackgroundJob\IJob[]
* @since 7.0.0
* @deprecated 9.0.0 - This method is dangerous since it can cause load and
* memory problems when creating too many instances.
*/
public function getAll();


Loading…
取消
儲存