summaryrefslogtreecommitdiffstats
path: root/lib/private/route
Commit message (Collapse)AuthorAgeFilesLines
* OC_Helper::linkTo is deprecatedRoeland Jago Douma2015-12-171-1/+1
| | | | Replaced with suggested (and calling body of)
* More cleanups of OC_Config usageMorris Jobke2015-12-031-1/+1
|
* Support pretty URLsLukas Reschke2015-12-011-1/+7
| | | | | | | | | | | | This changeset allows ownCloud to run with pretty URLs, they will be used if mod_rewrite and mod_env are available. This means basically that the `index.php` in the URL is not shown to the user anymore. Also the not deprecated functions to generate URLs have been modified to support this behaviour, old functions such as `filePath` will still behave as before for compatibility reasons. Examples: http://localhost/owncloud/index.php/s/AIDyKbxiRZWAAjP => http://localhost/owncloud/s/AIDyKbxiRZWAAjP http://localhost/owncloud/index.php/apps/files/ => http://localhost/owncloud/apps/files/ Due to the way our CSS and JS is structured the .htaccess uses some hacks for the final result but could be worse... And I was just annoyed by all that users crying for the removal of `index.php` ;-)
* Dont die when we're missing a routeRobin Appelman2015-11-272-4/+24
|
* deduplicate @xenopathicMorris Jobke2015-10-061-1/+1
|
* update licence headers via scriptMorris Jobke2015-10-051-0/+1
|
* Delay adding OCS prefix to route collection until all is loadedRobin McCorkell2015-09-011-2/+3
| | | | | ->addPrefix() iterates over all registered routes, so must be run after all apps have had a chance to load their OCS routes.
* Only load app routes if the app has already been loadedRobin McCorkell2015-08-181-0/+6
|
* Revert "Only load app routes if the app has already been loaded"Joas Schilling2015-08-111-6/+0
| | | | This reverts commit 50ebea41f60f2864a565ea9985c5462c2df5f09e.
* Only load app routes if the app has already been loadedRobin McCorkell2015-08-061-0/+6
|
* update license headers and authorsMorris Jobke2015-06-251-0/+1
|
* Clean application identifier before processingLukas Reschke2015-06-011-0/+2
|
* Replace `_method` requirement by {g,s}etMethods()David Prévot2015-04-191-2/+2
| | | | | | | | | | | | | | Make the call compatible with future Symfony version, and avoid E_USER_DEPRECATED as thrown by the current 2.7.0-beta1: The "_method" requirement is deprecated since version 2.2 and will be removed in 3.0. Use getMethods() instead. at …/Symfony/Component/Routing/Route.php#554 The "_method" requirement is deprecated since version 2.2 and will be removed in 3.0. Use the setMethods() method instead or the "methods" option in the route definition. at …/Symfony/Component/Routing/Route.php#662
* Update license headersJenkins for ownCloud2015-03-263-12/+65
|
* Revert "Updating license headers"Morris Jobke2015-02-263-62/+15
| | | | This reverts commit 6a1a4880f0d556fb090f19a5019fec31916f5c36.
* Updating license headersJenkins for ownCloud2015-02-233-15/+62
|
* 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-132-2/+2
|
* remove legacy aka deprecated code: OC_CacheThomas Müller2014-05-121-1/+1
|
* Preserve keys when sorting parameters when generatings urlsRobin Appelman2014-04-291-1/+1
|
* Merge pull request #7988 from owncloud/routing-cache-webrootAndreas Fischer2014-04-201-1/+2
|\ | | | | | | | | | | | | | | | | Keep cached urls with different hostnames or baseurls seperate * owncloud/routing-cache-webroot: Sort parameters and cast to int add delimiter between host and baseurl Keep cached urls with different hostnames or baseurls seperate
| * Sort parameters and cast to intRobin Appelman2014-04-151-1/+2
| |
| * add delimiter between host and baseurlRobin Appelman2014-04-071-1/+1
| |
| * Keep cached urls with different hostnames or baseurls seperateRobin Appelman2014-04-011-1/+1
| |
* | Fix PHPdoc in lib/privateBart Visscher2014-04-152-0/+13
| | | | | | | | 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
|
* Cache generated urls for routesRobin Appelman2014-03-241-0/+43
|
* 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-102-0/+334