summaryrefslogtreecommitdiffstats
path: root/lib/private/Route
Commit message (Collapse)AuthorAgeFilesLines
* backport of #28263Karel Hink2021-10-021-2/+3
| | | | Signed-off-by: Karel Hink <info@karelhink.cz>
* Also unset the other possible unused paramtersRoeland Jago Douma2020-12-161-0/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove some IRouter methodsRoeland Jago Douma2020-11-171-8/+0
| | | | | | | | | 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>
* Cleanup route registration logicRoeland Jago Douma2020-11-031-2/+9
| | | | | | | | 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>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-051-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Properly inject IRouter into URLGenerator to properly encapsulate testsMorris Jobke2020-08-191-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Only load routes of the app which is requestedMorris Jobke2020-08-191-5/+19
| | | | | | | * Add fallback to load all routes if needed * Move partial loaded routes test to proper place Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Hand in the route and the parameters of the requestJoas Schilling2020-08-051-2/+15
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Log the route not found exception on a lower levelRoeland Jago Douma2020-07-241-1/+1
| | | | | | This should be logged but it is not that critical to wanner level 3 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Do not create a RouteActionHandler object for each routeRoeland Jago Douma2020-07-071-9/+19
| | | | | | | | | | 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 license headers for 19Christoph Wurst2020-04-291-1/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix creation of legacy routesJoas Schilling2020-04-181-0/+29
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow some apps to have root URLs in their own routing fileJoas Schilling2020-04-181-1/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-3/+3
| | | | | | | | | | | | | | | 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-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-312-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-262-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-053-4/+4
| | | | 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>
* Merge pull request #17509 from nextcloud/fix/application-singletonJohn Molakvoæ2019-11-041-1/+1
|\ | | | | Fix Application instances created multiple times
| * Make sure we create an app's Application class just onceChristoph Wurst2019-10-111-1/+1
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Dont cache empty url for not found routesRobin Appelman2019-10-181-1/+3
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Move settings to an appChristoph Wurst2019-09-281-2/+3
| | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Make sure maintenance mode is always casted to boolJoas Schilling2019-02-221-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use type casting instead of *val() methodMorris Jobke2018-01-261-1/+1
| | | | | | It should be up to 6x faster Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-062-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix require once for actionIncludeMorris Jobke2017-08-091-1/+1
| | | | | | * regression from #5791 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* User proper anonymous functionRoeland Jago Douma2017-08-091-5/+6
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* PrivateData to appRoeland Jago Douma2017-07-211-2/+0
| | | | | | | * PrivateData is an app now: https://github.com/nextcloud/privatedata * No need to load the OCS routes.php (as there is none!) Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Check whether the $_SERVER['REQUEST_*'] vars exist before using themJoas Schilling2017-05-151-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add system config htaccess.IgnoreFrontController for prettyURLs w/o mod_envFelix Epp2016-11-161-1/+2
| | | | | | | Added the system config which sets all conditions to true that query the FrontControllerActive mod_env variable. Signed-off-by: Felix A. Epp <work@felixepp.de>
* Allow OCS routes in Core and SettingsRoeland Jago Douma2016-08-091-0/+5
|
* Allow ocs/v2.php/cloud/... routesRoeland Jago Douma2016-08-081-1/+1
| | | | | | | | | | | | | | | One of the possibilities of the old OCS API is that you can define the url yourself. This PR makes this possible again by adding an optional root elemenet to the route. Routes are thus: .../ocs/v2.php/<root>/<url> By default <root> = apps/<app> This will allow for example the provisioning API etc to be in ../ovs/v2/php/cloud/users
* Update with robinJoas Schilling2016-07-213-3/+3
|
* Fix othersJoas Schilling2016-07-213-6/+9
|
* Make the router handle OCS AppFramework RoutesRoeland Jago Douma2016-07-181-0/+12
|
* Update license headersLukas Reschke2016-05-262-1/+3
|
* Read only onceLukas Reschke2016-05-021-2/+3
| | | | This can lead to race conditions otherwise. Also depracted hasKey
* Move \OC\Route to PSR-4Roeland Jago Douma2016-04-253-0/+582