]> source.dussan.org Git - nextcloud-server.git/commitdiff
Deprecate the method and warn against using it
authorJoas Schilling <nickvergessen@owncloud.com>
Thu, 28 Jan 2016 14:36:33 +0000 (15:36 +0100)
committerJoas Schilling <nickvergessen@owncloud.com>
Thu, 28 Jan 2016 14:40:23 +0000 (15:40 +0100)
lib/private/backgroundjob/joblist.php
lib/public/backgroundjob/ijoblist.php

index cc9be574807b970ca891b77ae9a0720ec0a3c6d7..2920cb5214c019f0abdd44f888f6004df098f1bf 100644 (file)
@@ -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();
index 13775457edd9dfbcbf8d04be9b0e4affb065f13e..5a76ce1ba26cf9e5f24f0a669b94ee6b77e15359 100644 (file)
@@ -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();