summaryrefslogtreecommitdiffstats
path: root/lib/private/route/router.php
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Updating license headers"Morris Jobke2015-02-261-24/+5
| | | | This reverts commit 6a1a4880f0d556fb090f19a5019fec31916f5c36.
* Updating license headersJenkins for ownCloud2015-02-231-5/+24
|
* Refactor OC_Request into TrustedDomainHelper and IRequestLukas Reschke2015-02-161-2/+3
| | | | | | | | | | This changeset removes the static class `OC_Request` and moves the functions either into `IRequest` which is accessible via `\OC::$server::->getRequest()` or into a separated `TrustedDomainHelper` class for some helper methods which should not be publicly exposed. This changes only internal methods and nothing on the public API. Some public functions in `util.php` have been deprecated though in favour of the new non-static functions. Unfortunately some part of this code uses things like `__DIR__` and thus is not completely unit-testable. Where tests where possible they ahve been added though. Fixes https://github.com/owncloud/core/issues/13976 which was requested in https://github.com/owncloud/core/pull/13973#issuecomment-73492969
* Intelligent containerBernhard Posselt2014-12-231-4/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * resolves dependencies by type hint or variable name * simpler route.php * implementation of https://github.com/owncloud/core/issues/12829 Generates and injects parameters automatically. You can now build full classes like $c->query('MyClassName') without having to register it as a service. The resolved object's instance will be saved by using registerService. If a constructor parameter is not type hinted, the parameter name will be taken. Therefore the following two implementations are identical: class Class1 { function __construct(MyClassName $class) class Class1 { function __construct($MyClassName) This makes it possible to also inject primitive values such as strings, arrays etc. In addition if the query could not be resolved, a `QueryException` is now thrown Routes can now be returned as an array from `routes.php` and an `appinfo/application.php` is optional Old commit messages: make it possible to return the routes instead of having to intialize the application try to get the controller by convention add first implementation of automatic resolve add another test just to be sure store the resolved object more tests add phpdoc to public app.php method use the same variable for the public app.php method deprecate old methods and add services for public interfaces deprecated getServer method disallow private api injection for apps other than core or settings (settings should be an app goddamnit :D) register userid because its such an often used variable fix indention and leading slash use test namespace add deprecation reasons, remove private api usage checks and remove deprecation from getServer() add additional public interfaces add public interface for rootfolder fix syntax error remove deprecation from methods where no alternative is there yet remove deprecated from method which has no alternative add timezone public service for #12881 add another deprecation hint move deprecation into separate branch remove dead comment first try to get the namespace from the info.xml, if it does not exist, just uppercase the first letter also trim the namespace name add an interface for timefactory move timefactory to public and add icontrollermethodreflector keep core interface fix copyright date in headers
* drop unneeded var_dump - fixes #9997Morris Jobke2014-11-181-1/+0
|
* Log some additional eventsRobin Appelman2014-10-201-2/+3
|
* Log some basic eventsRobin Appelman2014-10-201-0/+4
|
* Also match routes without trailing slashJoas Schilling2014-09-221-1/+20
| | | | Fix #11209
* introduce and use getCurrentConnection()Jörn Friedrich Dreyer2014-07-011-0/+16
|
* Prevent loadApps on upgradeVincent Petry2014-06-181-1/+3
| | | | | | Moved OC::needUpgrade() to OCP\Util::needUpgrade() to make it accessible form the router. Moved maintenance + upgrade check to the router.
* Remove legacy routing codeLukas Reschke2014-06-051-0/+3
| | | | | | | | | | | | | | | | | | | The getfile routing code was absolutely legacy and not needed anymore. Additionally \OC::$REQUESTEDAPP was never set to the actually accessed application. This commit removes the legacy routing code and ensures that $REQUESTEDAPP is always set so that other applications (e.g. the firewall or a two-factor authentication) can intercept the currently accessed app. Testplan: [x] Installation works [x] Login with DB works [x] Logout works [x] Login with alternate backend works (tested with user_webdavauth) [x] Other apps are accessible [x] Redirect on login works (e.g. index.php?redirect_url=%2Fcore%2Findex.php%2Fsettings%2Fapps%3Finstalled) [x] Personal settings are accessible [x] Admin settings are accessible [x] Sharing files works [x] DAV works [x] OC::$REQUESTEDAPP contains the requested application and can be intercepted by other applications
* Fix all PHPDoc types and variable names, in /libRobin McCorkell2014-05-131-1/+1
|
* remove legacy aka deprecated code: OC_CacheThomas Müller2014-05-121-1/+1
|
* Fix PHPdoc in lib/privateBart Visscher2014-04-151-0/+7
| | | | using scrutinizer patch
* Merge pull request #8138 from owncloud/allow-app-in-routes.phpThomas Müller2014-04-101-1/+9
|\ | | | | To isolate the variable scope used inside the $file it is required in it...
| * To isolate the variable scope used inside the $file it is required in it's ↵Thomas Müller2014-04-091-1/+9
| | | | | | | | own method
* | Load all routes when matching an ocs routeRobin Appelman2014-04-031-1/+1
|/
* fix undefined index warning in routerRobin Appelman2014-03-261-1/+1
|
* Fix routes getting lost when loading app routes twiceRobin Appelman2014-03-251-7/+9
|
* fix incorect arrayRobin Appelman2014-03-251-1/+1
|
* Only load core routes for ocs and settingsRobin Appelman2014-03-251-1/+2
|
* Only load core routes when matching a core routeRobin Appelman2014-03-241-3/+5
|
* Only load routes from the apps we needRobin Appelman2014-03-241-13/+37
|
* Load the routes when matching or generating a route instead of when creating ↵Robin Appelman2014-03-241-0/+2
| | | | the router
* Move the router classes to a namespace and expose it with a public interfaceRobin Appelman2014-03-101-0/+202