summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Deprecate the server container gettersChristoph Wurst2020-07-162-0/+156
| | | | | | | | | Service locators are an anti pattern. These getters just make it more appealing to do the wrong thing. If you want to locate a service the bad way, just use the `get` method on a container – it will do the same in also one line of code. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use PSR container interface and deprecate our own abstractionChristoph Wurst2020-07-169-140/+244
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* [tx-robot] updated from transifexNextcloud bot2020-07-162-2/+4
|
* Better event description for BeforeTemplateRenderedEvent in files and ↵Morris Jobke2020-07-151-2/+2
| | | | | | files_sharing Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #21822 from nextcloud/enh/events/additionalscriptsMorris Jobke2020-07-155-5/+79
|\ | | | | Add real events to load additionalscripts
| * Add real events to load additionalscriptsRoeland Jago Douma2020-07-155-5/+79
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #21844 from ↵Morris Jobke2020-07-151-6/+9
|\ \ | | | | | | | | | | | | bladewing/bladewing-harden-against-mimetype-mismatch Avoid substr() error when strpos returns false
| * | Extra white space to follow other ifslui87kw2020-07-151-1/+1
| | | | | | | | | | | | Signed-off-by: lui87kw <lukas.ifflaender@uni-wuerzburg.de>
| * | Avoid substr() error when strpos returns falsebladewing2020-07-151-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | "Exception: substr() expects parameter 3 to be int, bool given" can occur on Line 378 $mimePart = substr($icon, 0, strpos($icon, '-')); This happens, when '-' is not found and strpos returns false instead of an int. When this occurs, e.g., Activity hangs. Signed-off-by: lui87kw <lukas.ifflaender@uni-wuerzburg.de>
* | | Deprecate the internal Symfony dispatcher adapterChristoph Wurst2020-07-152-0/+17
| |/ |/| | | | | | | | | | | This type is not known on the public API, yet we should make sure that any usage of this class is noticed and migrated as soon as possible. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Dashboard strict typingJulius Härtl2020-07-154-0/+12
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Add load method for apps to bootstrap their panelsJulius Härtl2020-07-152-7/+24
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Cleanup public api methodsJulius Härtl2020-07-154-22/+8
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Deprecate panel register event right away but keep it for not breaking ↵Julius Härtl2020-07-151-0/+6
| | | | | | | | | | | | backward compatible apps Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Move to lazy panel registration during registration contextJulius Härtl2020-07-155-0/+112
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Update autoloaderJulius Härtl2020-07-152-2/+4
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Deprecate old dashboard APIJulius Härtl2020-07-159-0/+79
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Add new dashboard public APIJulius Härtl2020-07-157-0/+218
|/ | | | 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-142-5/+18
|\ \ | | | | | | | | | | | | 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-142-5/+18
| |/ | | | | | | 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>
* | Merge pull request #21828 from ↵Morris Jobke2020-07-143-52/+38
|\ \ | | | | | | | | | | | | nextcloud/enhancement/lazy-bootstrap-registration-delegation Delegate bootstrap registration lazily
| * | Delegate bootstrap registration lazilyChristoph Wurst2020-07-143-52/+38
| |/ | | | | | | | | | | | | | | | | | | * 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>
* / Make the PSR-3 adapter exception-awareChristoph Wurst2020-07-141-9/+106
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #21785 from ↵Morris Jobke2020-07-133-3/+3
|\ | | | | | | | | nextcloud/techdebt/noid/remove-classmap-in-files_external Move OC_Mount_Config to proper classname and remove OC::$CLASSPATH us…
| * Move OC_Mount_Config to proper classname and remove OC::$CLASSPATH usage in ↵Morris Jobke2020-07-103-3/+3
| | | | | | | | | | | | files_external Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #21789 from nextcloud/ftp-filter-hashMorris Jobke2020-07-131-1/+4
|\ \ | | | | | | filter files containing a hash in the path for ftp storages
| * | filter files containing a hash in the path for ftp storagesRobin Appelman2020-07-101-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | the php ftp streamwrapper doesn't handle hashes correctly and will break when it tries to enter a path containing a hash. By filtering out paths containing a hash we can at least stop the external storage from breaking completely Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | [tx-robot] updated from transifexNextcloud bot2020-07-10102-102/+102
| |/ |/|
* | Merge pull request #21759 from nextcloud/enh/lazy_subscriptionRoeland Jago Douma2020-07-092-10/+52
|\ \ | |/ |/| Make the subscription registry lazy
| * Make the subscription registry lazyRoeland Jago Douma2020-07-092-10/+52
| | | | | | | | | | | | | | This will allow to do lazy registration here which should allow for loading less (or at least only when needed!). Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | ensure home storage is initialized on first setupRobin Appelman2020-07-093-2/+6
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Use the correct mountpoint to calculateRoeland Jago Douma2020-07-091-1/+8
|/ | | | | | | If we use the owners mount point this results in null. And then the rest of the checks get called with null. Which doesn't work. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix regression in return value of OC_Util::checkDataDirectoryPermissions due ↵Morris Jobke2020-07-091-2/+2
| | | | | | to #21761 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #21761 from nextcloud/fix/permission_check_translationRoeland Jago Douma2020-07-091-7/+5
|\ | | | | Kill another unneeded translation
| * Kill another unneeded translationRoeland Jago Douma2020-07-081-7/+5
| | | | | | | | | | | | We should only translate things when we actually need them. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | [tx-robot] updated from transifexNextcloud bot2020-07-09126-126/+128
|/
* Merge pull request #21758 from nextcloud/fix/routes/defaultsRoeland Jago Douma2020-07-081-6/+10
|\ | | | | Fix supporting defaults for routes
| * Fix supporting defaults for routesRoeland Jago Douma2020-07-081-6/+10
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Only translate if we need the stringRoeland Jago Douma2020-07-081-2/+1
|/ | | | | | | | This translation was done in each call. Over and over and over again. All while it was probably not used in 99.99999% of the cases. A small gain. But still. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #21643 from nextcloud/enh/no_routeactionhadler_initsRoeland Jago Douma2020-07-082-16/+23
|\ | | | | Do not create a RouteActionHandler object for each route
| * Do not create a RouteActionHandler object for each routeRoeland Jago Douma2020-07-072-16/+23
| | | | | | | | | | | | | | | | | | | | 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>
* | Merge pull request #21739 from nextcloud/techdebt/14552/migrate-OC-initSessionMorris Jobke2020-07-081-8/+2
|\ \ | | | | | | Remove hook for initSession
| * | Remove hook for initSessionMorris Jobke2020-07-071-8/+2
| | | | | | | | | | | | | | | | | | It's not used anyways and allowed to manipulate the state of the session. Also removed the code handling this. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | [tx-robot] updated from transifexNextcloud bot2020-07-082-0/+8
| |/ |/|
* | Merge pull request #21676 from J0WI/fix-chmod-on-fdMorris Jobke2020-07-071-1/+1
|\ \ | |/ |/| Fix chmod on file descriptor
| * Fix chmod on file descriptorJ0WI2020-07-031-1/+1
| | | | | | | | Signed-off-by: J0WI <J0WI@users.noreply.github.com>