aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/AppFramework/Utility/SimpleContainer.php
Commit message (Collapse)AuthorAgeFilesLines
* chore: Add SPDX headerAndy Scherzinger2024-05-241-26/+4
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix: Fix newly spotted psalm issues, add exhaustive typed magic properties ↵Côme Chilliet2024-04-301-2/+2
| | | | | | for LDAP classes Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Fix new psalm errors from updateCôme Chilliet2024-04-081-1/+1
| | | | | | | Not sure about the SimpleContainer modification, let’s see what CI says about that. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-231-1/+1
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* feat(dependencyinjection): Allow optional (nullable) servicesChristoph Wurst2023-11-031-0/+5
| | | | | | Allows working with classes that might or might not be available. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* fix(CardDAV): catch right exception when checking for federated app classesAnna Larch2023-07-061-1/+0
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* fix: Throw `NotFoundExceptionInterface` to fulfill PSR container interface ↵Ferdinand Thiessen2023-02-061-2/+3
| | | | | | if class not found Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
* composer run cs:fixCôme Chilliet2023-01-201-1/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Improve dependency injection error messageCarl Schwan2022-12-011-1/+1
| | | | | | | Change from display the name of the parameter to the type of the parameter. This is that in most cases is usefull. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Improve container return type annotationsJulius Härtl2022-10-141-0/+9
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add a built-in profiler inside NextcloudCarl Schwan2022-04-041-3/+5
| | | | | | The webui is provided by a seperate application named profiler Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix ArrayAccess and JsonSerializable return typesCôme Chilliet2021-11-231-3/+5
| | | | | | First round of modifications for PHP 8.1 Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Bump psr/container from 1.0.0 to 1.1.1Christoph Wurst2021-03-101-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* forward query exception when fallback construction failsRobin Appelman2021-02-091-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* forward original query exception when querying by name failsRobin Appelman2021-02-081-1/+6
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* ReflectionParamter::getClass is deprecatedRoeland Jago Douma2020-11-111-6/+6
| | | | | | | | In php8 this starts throwing warnings. And since we use it quite often we flood the log. This moves it to getType which does the same. Only non deprecated now. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-241-1/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use PSR container interface and deprecate our own abstractionChristoph Wurst2020-07-161-43/+86
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headers for 19Christoph Wurst2020-04-291-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-2/+2
| | | | | | | | | | | | | | | 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 elseif instead of else ifChristoph Wurst2020-04-101-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-1/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-221-3/+3
| | | | | | | | | | | * 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>
* Do not try to autoload built in typesRoeland Jago Douma2019-06-041-9/+5
| | | | | | | | This avoids calls to the autoloader (or chain of autoloaders) to see if for example 'principalPrefix' class can be found. While we already know it is a string. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix testsRoeland Jago Douma2018-11-021-1/+0
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* only catch QueryException when trying to build classRobin Appelman2018-09-211-7/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Single quotesJoas Schilling2018-03-071-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Suppress phan errorJoas Schilling2018-03-071-0/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Try without autoloadingJoas Schilling2018-03-061-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Better debugging for "Your test case is not allowed to access the database."Joas Schilling2018-03-051-0/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headersMorris Jobke2017-11-061-0/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* When we can not create the class, try if the variable is a registered serviceJoas Schilling2016-10-051-0/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #1426 from nextcloud/sanitze_optLukas Reschke2016-09-261-1/+4
|\ | | | | Optimize sanitizeName
| * Optimize sanitizeNameRoeland Jago Douma2016-09-161-1/+4
| |
* | Use default value instead of throwing when the service could not be foundJoas Schilling2016-09-201-1/+10
|/
* Fix othersJoas Schilling2016-07-211-2/+3
|
* Update license headersLukas Reschke2016-05-261-1/+1
|
* Move \OC\AppFramework to PSR-4Roeland Jago Douma2016-04-221-0/+162
* Also moved the autoloader setup a bit up since we need it in initpaths