Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-05-23Add a helper function that makes it easier to log from anywhereenhancement/logger-functionChristoph Wurst
Our DI is able to inject a logger implementation to any server and app class if they want one. However, sometimes DI isn't applicable or hard to add. In those cases we typically fell back to the *service locator* pattern where we acquired a logger from the server via a global variable. There were some issues with that * `\OC` is a private class, apps are not supposed to use it * `\OC::$server` is a global variable, a well known anti-pattern * `\OC::$server->get(...)` uses the service locator anti-pattern * `\OC::$server->get(...)` may throw * `\OC::$server->get(LoggerInterface::class)` is not scoped to an app With this patch I'm proposing a new helper function ``\OCP\Log\logger`` that can be used to acquire a logger more easily. This function is meant to be public API and therefore apps may use it and there is an optional parameter to specifiy the app ID. The function hides all the ugly details about the global variable and the potentially thrown exceptions from the user. Therefore it's guaranteed that you always get a logger instance. In the worst case you get a noop, though those occasions should be rare. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-04-26Fix mexitek/phpcolorsfix/phpcolorsJohn Molakvoæ
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2022-04-21Start theming providersJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-02-01Merge pull request #29286 from nextcloud/enhancement/drop-php-7-3Côme Chilliet
Drop PHP7.3
2022-01-27Fix registerEventListener issuesCarl Schwan
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-01-25Drop PHP7.3Christoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-01-12Fix a few psalm issues and moved back to psalm/phar 4.18Carl Schwan
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2021-12-30Allow using composer plugin with composer 2.2Julius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-10-21Bump Symfony family and friends to v4.4.30Christoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-08-19Scope composer tools with the bin pluginChristoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-06-01Add mbstring as dependencyDaniel Kesselberg
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2021-05-03Add ext-zip as platform dependencyChristoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-02-18Bump nextcloud/coding-standard from 0.3.0 to 0.5.0dependabot-preview[bot]
Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 0.3.0 to 0.5.0. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v0.3.0...v0.5.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-11-26Require ext-simplexml via composerChristoph Wurst
This makes phpunit (and static analysis?) happy Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-11-20Require xmlreader via composerChristoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-11-20Require libxml in composerChristoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-10-20Bump vimeo/psalm from 3.17.2 to 4.0.1dependabot-preview[bot]
Bumps [vimeo/psalm](https://github.com/vimeo/psalm) from 3.17.2 to 4.0.1. - [Release notes](https://github.com/vimeo/psalm/releases) - [Commits](https://github.com/vimeo/psalm/compare/3.17.2...4.0.1) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-14Bump vimeo/psalm from 3.15 to 3.17.1Christoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-10-13Use own psalm instead of a global oneChristoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-09-16Remove phan config - was replaced by PsalmMorris Jobke
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2020-08-18Add psalm as composer dependencyDaniel Kesselberg
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2020-06-26Remove unused jakub-onderka/php-parallel-lintDaniel Kesselberg
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2020-05-28List ext-pdo as hard requirement for composerChristoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-05-13Respect exit code of lint run - changed from -exec to xargs as this exits ↵Morris Jobke
properly Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2020-05-13Declare ext-json as dependency in composer.jsonChristoph Wurst
This makes phpstorm happy as it knows that the functions like json_encode are available. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-04-15Print diff in cs:check commandChristoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-04-10Bump coding standard lib for PSR2Christoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-04-09Fix (array) indent style to always use one tabChristoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-04-07Move legacy classes from PSR0 to PSR4Christoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-03-31Add shared php-cs configChristoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-02-10Lint on github actionsRoeland Jago Douma
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-09-28Move settings to an appChristoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
2019-05-30Add the legacy classes to the composer classmapRoeland Jago Douma
To have a faster autoloading. We should get rid of those of course. But for now I do not see it happening any time soon. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2016-07-18Use classmap to load core filesRoeland Jago Douma
We can't use an authoritive classmap in the current state as it would kill app loading. However we can use a proper classmap for the normal core stuff.
2016-04-05Move OC\Core and OC\Settings to composer autoloaderLukas Reschke
2016-03-22Allos OCP classes to be PSR-4 as wellRoeland Jago Douma
This adds the OCP namespace to the composer autoloader as well. This means that now we can use proper PSR-4 filenames in OCP.
2016-03-16Execute PHP Parallel Linter on TravisLukas Reschke
2016-03-09Add composers default autoloader to coreRoeland Jago Douma
This introduces the defacto standard PSR-4 autoloader from composer into core. This will allow proper PSR-4 naming of our classes. Since our original autoloader is still available we can slowly switch over classes to PSR-4.
2012-10-27Include copy of Symfony routing component, and don't use composerBart Visscher
2012-10-27More info for composer.jsonBart Visscher
2012-10-27Change Symfony/Component/Routing from submodule to composer fetchingBart Visscher