summaryrefslogtreecommitdiffstats
path: root/core/command/background/ajax.php
diff options
context:
space:
mode:
authorChristian Kampka <christian@kampka.net>2015-02-28 21:56:40 +0100
committerChristian Kampka <christian@kampka.net>2015-03-02 20:51:40 +0100
commit83e0f84fef880bbd58cfa43b413436ff3a95d778 (patch)
treebe156d592000bde311ffe8fe9ece4dfb9ad3ca6c /core/command/background/ajax.php
parent42f6448da239c1b716ae514a513c4985eec48ef5 (diff)
downloadnextcloud-server-83e0f84fef880bbd58cfa43b413436ff3a95d778.tar.gz
nextcloud-server-83e0f84fef880bbd58cfa43b413436ff3a95d778.zip
Allow configuring background job mode from the console
Diffstat (limited to 'core/command/background/ajax.php')
-rw-r--r--core/command/background/ajax.php33
1 files changed, 33 insertions, 0 deletions
diff --git a/core/command/background/ajax.php b/core/command/background/ajax.php
new file mode 100644
index 00000000000..e9cd1405ebd
--- /dev/null
+++ b/core/command/background/ajax.php
@@ -0,0 +1,33 @@
+<?php
+/**
+* The MIT License (MIT)
+*
+* Copyright (c) 2015 Christian Kampka <christian@kampka.net>
+*
+* Permission is hereby granted, free of charge, to any person obtaining a copy
+* of this software and associated documentation files (the "Software"), to deal
+* in the Software without restriction, including without limitation the rights
+* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+* copies of the Software, and to permit persons to whom the Software is
+* furnished to do so, subject to the following conditions:
+*
+* The above copyright notice and this permission notice shall be included in
+* all copies or substantial portions of the Software.
+*
+* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+* THE SOFTWARE.
+*/
+
+namespace OC\Core\Command\Background;
+
+class Ajax extends Base {
+
+ protected function getMode() {
+ return 'ajax';
+ }
+}