summaryrefslogtreecommitdiffstats
path: root/apps/federation/lib/BackgroundJob
Commit message (Collapse)AuthorAgeFilesLines
* Fix typos in apps/ subdirectoryluz paz2022-09-051-1/+1
| | | | | | | Found via `codespell -q 3 -S l10n,./apps/files_external/3rdparty -L adn,ba,boxs,keypair,jus,optionel,ressource,tabel ./apps/` Signed-off-by: luz paz <luzpaz@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Port existing server code to new interfaceCarl Schwan2022-08-081-22/+9
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Summer cleanup of the federation appCarl Schwan2022-06-241-45/+22
| | | | | | | | | | - Use IEventDispatcher instead of deprecated symfony dispatcher - Use LoggerInterface where possible - Use php 7.4 properties - Add type hinting where possible - Move federation hooks to a seperate listener Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-042-2/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Update license headersChristoph Wurst2020-12-302-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Drop all dead packagesChristoph Wurst2020-12-232-14/+2
| | | | | | | | Apparently we have plenty of leftover of previous sub-dependencies. Composer automatically dumps those with any future dependency update, so I'm dropping them in an atomic step. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add missing parent::__construct() calls to JobsJoas Schilling2020-12-142-14/+8
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use proper OCP\BackgroundJobs\JobRoeland Jago Douma2020-11-252-8/+6
| | | | | | And typehunt the IJobList Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make sure the function signatures of the backgroundjob matchRoeland Jago Douma2020-10-262-2/+2
| | | | | | Else PHP says no Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-102-5/+0
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-091-1/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-052-4/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-222-4/+2
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* move log constants to ILoggerArthur Schiwon2018-04-261-2/+2
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* improve error reporting and move format parameter to the optionsBjoern Schiessle2018-04-252-30/+6
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Remove unused import statementsMorris Jobke2018-02-142-2/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Properly log the full exception instead of only the messageMorris Jobke2018-01-231-2/+10
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Catch the errors related to untrusted self signed certificates for federationRoeland Jago Douma2017-12-112-2/+12
| | | | | | * Added tests Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Actually set the status so we don't cause another exceptionRoeland Jago Douma2017-11-292-0/+2
| | | | | | * And add tests so I don't mess up again Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Do not log Exception if a connection error occuredRoeland Jago Douma2017-11-292-0/+6
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headersMorris Jobke2017-11-062-0/+8
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ITimeFactoryRoeland Jago Douma2017-08-012-18/+29
| | | | | | | * Inject the timefacotry so we can mock it properly in the tests. * Extended unit tests to cover the new paths Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* cleanup constructorsBjoern Schiessle2017-08-012-53/+33
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* expire requestSharedSecret job after 30 daysBjoern Schiessle2017-08-011-2/+39
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* expire getShareadSecret job after 30 daysBjoern Schiessle2017-08-011-2/+37
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Add |null to PHPDocLukas Reschke2017-08-012-2/+2
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* No need to log guzzle exceptionRoeland Jago Douma2017-04-212-2/+2
| | | | | | | | | | When getting/requesting a shared secret there is no need to log the full exception when an unexpected status code is returned since this won't really tell us anything as the bad stuff happened on a remote server Fixes #3380 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #3614 from nextcloud/discover-federatedsharing-endpointsBjörn Schießle2017-04-122-6/+36
|\ | | | | Discover federatedsharing endpoints
| * Do proper DIRoeland Jago Douma2017-04-112-2/+2
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * fix constructorBjoern Schiessle2017-04-112-2/+2
| | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
| * use discovered end-point for trusted serversBjoern Schiessle2017-04-112-6/+36
| | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | Update comments to NextcloudMorris Jobke2017-04-112-2/+2
|/ | | | | | | * based on PR by @Ardinis * see #4311 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update with robinJoas Schilling2016-07-212-2/+2
|
* Fix apps/Joas Schilling2016-07-212-4/+7
|
* Allow nullRobin Appelman2016-07-081-1/+1
|
* Update license headersLukas Reschke2016-05-262-2/+4
|
* Move federation code to PSR-4Joas Schilling2016-05-192-0/+384