aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/AppFramework/Bootstrap
Commit message (Collapse)AuthorAgeFilesLines
* feat(SpeechToText): Add SpeechToText provider APIMarcel Klehr2023-04-111-0/+22
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* feat(translations): Add translation provider APIJulius Härtl2023-02-271-0/+25
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* instrumentation for app bootingRobin Appelman2023-02-091-8/+8
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add more performance instrumentation for app registeringRobin Appelman2023-02-091-2/+14
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Pluggable share providerLouis Chemineau2023-02-021-0/+22
| | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu> Signed-off-by: Louis Chemineau <louis@chmn.me>
* feat(app-framework): Add support for global middlewaresChristoph Wurst2023-01-262-6/+52
| | | | | | | This allows apps to register middlewares that always register, not just for the app's own requests Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* perf(app-framework): Make the app middleware registration lazyChristoph Wurst2023-01-252-23/+3
| | | | | | | | | Before this patch, app middlewares were registered on the dispatcher for every app loaded in a Nextcloud process. With the patch, only middlewares belonging to the same app of a dispatcher instance are loaded. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* composer run cs:fixCôme Chilliet2023-01-2010-10/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Move registration to IBootstrapJulius Härtl2022-08-311-0/+22
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* allow apps to specify methods carrying sensitive parametersArthur Schiwon2022-07-281-0/+23
| | | | | | … in order to remove them from logging. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* load widgets only of enabled appsArthur Schiwon2022-06-222-3/+3
| | | | | | | | | | | | | - per design, all enabled apps have their registration run - limitations, e.g. enabled by group, are not considered in that state, because we do not have a session (and might need apps?) - before instantiation of widget it has to be checked whether the providing app is actually enabled for the logged in user. - a public interface is being changed, but it is not meant to be implemented or used outside of the core handling. Therefore save to backport. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Add event logging to app loadingJulius Härtl2022-02-281-0/+10
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Allow registration of migratorsChristopher Ng2022-02-111-0/+25
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Move calendar resource/room backend registration to IBootstrapChristoph Wurst2022-02-071-0/+52
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add a Talk API for OCPChristoph Wurst2022-02-041-0/+35
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use more explicit naming for profile link actionChristopher Ng2021-10-251-8/+8
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Move preview provider registration to bootstrapRoeland Jago Douma2021-10-212-0/+69
| | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Profile backendChristopher Ng2021-10-192-10/+39
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Add Public Calendar ProviderAnna Larch2021-10-141-0/+22
| | | | | Signed-off-by: Anna Larch <anna@nextcloud.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Harden bootstrap context registrations when apps are missingChristoph Wurst2021-06-251-11/+51
| | | | | | | | | | | It's not expected that an app would be unavailable when the app container is created but when services are registered, but Sentry tells me on Nextcloud 21 there is an edge case where this can happen. Therefore this patch hardens the code a bit to log a meaningful error message and skipping the next code instead of logging a php notice for the undefined index and an exception for calling a method on null. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-0410-39/+35
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix log entry readabilityJoas Schilling2021-05-211-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Don't break OCC if an app is breaking in it's Application classJoas Schilling2021-05-051-13/+16
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix unit testsJoas Schilling2021-04-271-5/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Less ILoggerJoas Schilling2021-04-272-33/+24
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Move 2FA registration to IBootstrapRoeland Jago Douma2021-04-201-1/+22
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Allow registering NotifierServices trough IBootstrapRoeland Jago Douma2021-04-161-0/+22
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Move initialstate bootstrap to proper types classesRoeland Jago Douma2021-03-091-6/+4
| | | | | | For more type safety Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Register service aliases und parameters just onceChristoph Wurst2021-02-241-2/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix remaining #25359Roeland Jago Douma2021-02-101-4/+1
| | | | | | | | | As a wise man once said: "I like PRs that pass tests before merging" C. Wurst, Feb 9th 2021 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Type the service registrationChristoph Wurst2021-02-107-101/+438
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Move TemplateProvider registration to boot context and make template type ↵Julius Härtl2021-01-281-1/+22
| | | | | | registration lazy Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #24702 from nextcloud/enhancement/well-known-handler-apiChristoph Wurst2020-12-181-0/+24
|\ | | | | Add well known handlers API
| * Add well known handlers APIChristoph Wurst2020-12-161-0/+24
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-0/+2
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix reverse registration and missing comments tabChristoph Wurst2020-11-241-6/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* 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>
* Fix typo 'shared'Robin Windey2020-10-121-1/+1
|
* Move initial state provider to boostrapRoeland Jago Douma2020-10-041-0/+24
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-244-8/+18
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* 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>
* 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>
* Allow to register AlternativeLogin on RegistrationContextJoas Schilling2020-07-161-0/+24
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* 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 #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>
* | 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>