aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/AppFramework
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | Update all license headers for Nextcloud 21Christoph Wurst2020-12-167-7/+7
| |/ / |/| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | Make $vars and $secureRandom required.Daniel Kesselberg2020-12-101-2/+2
|/ / | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Fix reverse registration and missing comments tabChristoph Wurst2020-11-241-6/+6
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #24164 from nextcloud/fix/lazy-app-registrationMorris Jobke2020-11-192-13/+21
|\ \ | | | | | | Allow lazy app registration
| * | Allow lazy app registrationChristoph Wurst2020-11-182-13/+21
| | | | | | | | | | | | | | | | | | | | | | | | During app installation we run migration steps. Those steps may use services the app registers or classes from composer. Hence we have to make sure the app runs through the registration. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | missing levelMaxence Lange2020-11-181-0/+1
|/ / | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* | Remove some IRouter methodsRoeland Jago Douma2020-11-171-4/+4
| | | | | | | | | | | | | | | | | | This is not the end. IRouter needs to burn. But it is a start. 🎵 we didn't start the fire 🎵 Signed-off-by: Roeland Jago Douma <roeland@famdouma.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>
* | Remove the cookie paths for php<7.3Christoph Wurst2020-11-061-12/+8
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Cleanup route registration logicRoeland Jago Douma2020-11-031-0/+269
| | | | | | | | | | | | | | | | This was a bunch of cylic things being called. This is an attempt to clean this all up. If an app provides an array of routes. We just parse them and hand them back. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Fix type errors detected by PsalmChristoph Wurst2020-10-141-2/+7
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Fix typo 'shared'Robin Windey2020-10-121-1/+1
| |
* | Format code to a single space around binary operatorsChristoph Wurst2020-10-058-13/+13
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #21821 from nextcloud/enh/bootstrap/initial_stateRoeland Jago Douma2020-10-041-0/+24
|\ \ | | | | | | Bootstrap: add initial state registration
| * | Move initial state provider to boostrapRoeland Jago Douma2020-10-041-0/+24
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Merge pull request #23047 from nextcloud/techdebt/noid/warn-on-database-abuseRoeland Jago Douma2020-10-042-3/+56
|\ \ \ | |/ / |/| | Log the number of queries built and executed
| * | Fix testsJoas Schilling2020-10-021-2/+0
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * | Log the number of queries built and executedJoas Schilling2020-09-252-2/+57
| |/ | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* / Add acutal response to BeforeTemplateRenderedEventJulius Härtl2020-09-241-1/+1
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-2419-16/+40
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix CSJoas Schilling2020-08-191-0/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Send "429 Too Many Requests" in case of brute force protectionJoas Schilling2020-08-191-1/+27
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #22133 from nextcloud/boot-app-onceMorris Jobke2020-08-071-0/+8
|\ | | | | only boot apps once
| * only boot apps onceRobin Appelman2020-08-071-0/+8
| | | | | | | | | | | | in some cases `loadApp` is called more then once which is currently causing apps to be "booted" multiple times which can lead to unexepected behaviour with things like registering hooks Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Refactor API to match the widget wordingJulius Härtl2020-08-051-3/+3
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #21542 from nextcloud/activity-notificationsMorris Jobke2020-07-291-0/+14
|\ | | | | basic settings system for activity notifications
| * basic settings system for activity notificationsRobin Appelman2020-07-211-0/+14
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Move NotFoundResponse to a proper TemplateResponseJulius Härtl2020-07-241-9/+8
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Use the proper IAppContainer and IServerContainer type hints to know which ↵Morris Jobke2020-07-211-5/+5
| | | | | | | | | | | | code runs with which container Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Make the bootstrap context return ContainerInterface instancesChristoph Wurst2020-07-212-11/+11
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #21875 from nextcloud/techdebt/deprecate-iloggerMorris Jobke2020-07-201-0/+36
|\ | | | | Deprecate ILogger in favor of the PSR-3 logger
| * Deprecate ILoggerChristoph Wurst2020-07-161-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | The logger service was always intended to follow the PSR-3 interface. It's time to embrace this and switch over to the "official" API, hence this custom interface can be slowly phased out. With Nextcloud 20 the logger also got support for * App id filled out automatically * Exceptions handling (as replacement for logException) Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #21850 from ↵Morris Jobke2020-07-201-0/+24
|\ \ | | | | | | | | | | | | nextcloud/techdebt/noid/register-alternative-logins Allow to register AlternativeLogin on RegistrationContext
| * | Allow to register AlternativeLogin on RegistrationContextJoas Schilling2020-07-161-0/+24
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Add a scoped PSR logger for appsChristoph Wurst2020-07-162-1/+162
| |/ |/| | | | | | | | | | | | | Just like for ILogger we should have a version that has the app ID pre-set for the context (unless overwritten) so that each log entry can be traced back to the app that produced it. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use PSR container interface and deprecate our own abstractionChristoph Wurst2020-07-162-121/+180
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add real events to load additionalscriptsRoeland Jago Douma2020-07-151-5/+15
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Move to lazy panel registration during registration contextJulius Härtl2020-07-152-0/+42
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #21825 from nextcloud/fix/appframework/servicesMorris Jobke2020-07-141-2/+14
|\ | | | | Fix AppFramework services
| * Fix AppFramework servicesRoeland Jago Douma2020-07-141-2/+14
| | | | | | | | | | | | | | | | | | * We can't just register an alias as the services need the appId to be injected. if we just register an alias this blows up since the main container doesn't have the appId. * Moved the Authtokens over to show the PoC works Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #21812 from ↵Morris Jobke2020-07-141-1/+7
|\ \ | | | | | | | | | | | | nextcloud/feature/noid/app-bootstrap-without-app.php Do not load app.php if Application implements IBootstrap
| * | Do not load app.php if Application implements IBootstrapMorris Jobke2020-07-141-1/+7
| |/ | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #21833 from nextcloud/docfix/noid/irequest_getHeaderRoeland Jago Douma2020-07-141-1/+1
|\ \ | | | | | | Fix PHPDoc of IRequest::getHeader
| * | Fix PHPDoc of IRequest::getHeaderGeorg Ehrke2020-07-141-1/+1
| |/ | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* / Delegate bootstrap registration lazilyChristoph Wurst2020-07-142-28/+22
|/ | | | | | | | | | * Keep the registration context * Expose the context object for other components * Ensure registration is only run once Search providers are migrated for demonstration. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix supporting defaults for routesRoeland Jago Douma2020-07-081-6/+10
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Do not create a RouteActionHandler object for each routeRoeland Jago Douma2020-07-071-7/+4
| | | | | | | | | | This is not required and doesn't allow us to be properly lazy. On top of it this doesnt allow us to cache the routes (since closures/objects can't be cached). This is the first small step into cleaning up the routing we have Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update SecurityMiddleware.phpHolger Hees2020-07-061-1/+1
| | | | | | OC::$WEBROOT can be empty in case if your nextcloud installation has no url prefix. This will result in an empty Location Header. in other areas OC::$WEBROOT is always used together with an /
* Callable parameter injectionChristoph Wurst2020-07-032-0/+73
| | | | | | | | | | | | | | This is like what we have to DI and classes, but for callables. The motivating factor is to get rid of *service locators* in the `boot` method of apps as a new pattern is about to emerge where we have lots of `query` calls on the app or server container in order to fetch some services. With this little helper it's possible to call another (public) method and magically have everything injected. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix IPv6 remote addresses from X_FORWARDED_FOR headers before validatingJoas Schilling2020-07-021-0/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>