aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/appframework
Commit message (Collapse)AuthorAgeFilesLines
* always set url parameters when they are available in the app dispatchBernhard Posselt2015-01-151-0/+17
| | | | | | prefer url parameters passed into the main method. If they are not present, use the containers urlParameters add space
* Intelligent containerBernhard Posselt2014-12-232-0/+212
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Merge pull request #12619 from owncloud/use-also-original-heaMorris Jobke2014-12-041-1/+2
|\ | | | | Merge headers
| * Fix unit testLukas Reschke2014-12-041-1/+2
| |
* | PHP < 5.4 is not supported anymore - see #12606Morris Jobke2014-12-041-8/+0
| |
* | Remove last traces of travis integrationMorris Jobke2014-12-041-2/+2
|/
* Add functions to modify cookies to response classLukas Reschke2014-11-273-9/+95
| | | | | | | | | | | | | | | | Currently there is no AppFramework way to modify cookies, which makes it unusable for quite some use-cases or results in untestable code. This PR adds some basic functionalities to add and invalidate cookies. Usage: ```php $response = new TemplateResponse(...); $response->addCookie('foo', 'bar'); $response->invalidateCookie('foo'); $response->addCookie('bar', 'foo', new \DateTime('2015-01-01 00:00')); ``` Existing cookies can be accessed with the AppFramework using `$this->request->getCookie($name)`.
* Merge pull request #12294 from owncloud/route-postfixThomas Müller2014-11-241-1/+14
|\ | | | | Add route postfix to allow url versioning when only the http method changed
| * add postfixBernhard Posselt2014-11-191-1/+14
| | | | | | | | add postfix
* | Make remaining files extend the test baseJoas Schilling2014-11-1923-31/+56
|/
* Check if app is enabled for userLukas Reschke2014-11-151-2/+2
| | | | Fixes https://github.com/owncloud/core/issues/12188 for AppFramework apps
* fix typo in content typeBernhard Posselt2014-11-051-1/+1
|
* remove unnecessary require calls - the ownCloud class loader is supposed to ↵Thomas Müller2014-10-304-14/+12
| | | | take care of this
* add dataresponseBernhard Posselt2014-10-294-24/+185
| | | | | | | | | | | | | | fix docstrings adjust copyright date another copyright date update another header update implement third headers argument, fix indention, fix docstrings fix docstrings
* introduce SessionMiddleWare to control session handling via an annotationThomas Müller2014-10-221-0/+89
|
* Allow default values for route parameters.Patrick Paysant2014-09-091-4/+22
|
* Make Entity properties ```protected``` as in docsOliver Gasser2014-08-272-7/+7
| | | | | | | Entity properties are marked as ```protected``` to correctly reflect the documentation. See also owncloud/documentation@644f2eedac8e912c3019366b29ecdfbd9a15c5d9
* mark tests as skipped - TODO travisMorris Jobke2014-08-051-0/+8
| | | | * swift causes some timeouts and test failures
* kill unused require of MapperTestUtility.phpThomas Müller2014-07-171-4/+5
|
* fixing namespace of MapperTestUtilityThomas Müller2014-07-171-1/+1
| | | | and rename file to be lowercase
* Merge pull request #9228 from owncloud/remove-routing-singular-issuesMorris Jobke2014-07-141-4/+4
|\ | | | | Routing: Dont strip the s from the resource id to prevent possible weird behavior with irregular english plural nouns
| * use id instead of resourceIdBernhard Posselt2014-06-261-2/+2
| |
| * dont strip the s from the resourceBernhard Posselt2014-06-261-4/+4
| |
* | fix redirect URL unit testMorris Jobke2014-07-021-1/+3
|/
* also handle lowercase headersBernhard Posselt2014-06-111-0/+9
|
* handle http accept headers more gracefullyBernhard Posselt2014-06-111-0/+23
|
* remove controller serializersBernhard Posselt2014-06-051-21/+1
|
* fix assertionsBernhard Posselt2014-05-281-9/+14
|
* fix 8757, get rid of service locator antipatternBernhard Posselt2014-05-283-106/+84
|
* use fetch method instead of fetchRow because fetchRow is only an owncloud ↵Bernhard Posselt2014-05-141-3/+3
| | | | internal alias that exists purely for compability
* make it possible to omit parameters and use the default parameters from the ↵Bernhard Posselt2014-05-132-9/+37
| | | | controller method
* Merge pull request #8477 from owncloud/better-controllersMorris Jobke2014-05-1216-127/+391
|\ | | | | Better appframework controllers
| * use new controllermethodreflector for corsmiddlewareBernhard Posselt2014-05-111-5/+15
| |
| * adjust license headers to new mail addressBernhard Posselt2014-05-1114-16/+16
| |
| * rename formatter to responder, formatResponse to buildResponseBernhard Posselt2014-05-112-6/+6
| |
| * add test for not failing when adding more comments after type parameters, do ↵Bernhard Posselt2014-05-112-2/+2
| | | | | | | | not limit x-www-form-urlencoded to POST
| * implement most of the basic stuff that was suggested in #8290Bernhard Posselt2014-05-116-107/+361
| |
* | Merge pull request #8274 from owncloud/appframework-dbMorris Jobke2014-05-123-0/+681
|\ \ | |/ |/| Port database layer from appframework to core
| * dont update entity and dont run an update query if an entity wasnt changed ↵Bernhard Posselt2014-04-232-1/+24
| | | | | | | | at all
| * fix phpdoc for entitiesBernhard Posselt2014-04-202-4/+9
| |
| * move db into iservercontainerBernhard Posselt2014-04-192-1/+3
| |
| * remove unusued variableBernhard Posselt2014-04-191-6/+0
| |
| * remove unusued variableBernhard Posselt2014-04-191-1/+0
| |
| * fix scrutinizer issuesBernhard Posselt2014-04-192-12/+23
| |
| * port database layer from appframework to coreBernhard Posselt2014-04-193-0/+647
| |
* | add cors middlewareBernhard Posselt2014-05-094-3/+135
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | remove methodannotationreader namespace fix namespace for server container fix tests fail if with cors credentials header is set to true, implement a reusable preflighted cors method in the controller baseclass, make corsmiddleware private and register it for every request remove uneeded local in cors middleware registratio dont uppercase cors to easily use it from routes fix indention comment fixes explicitely set allow credentials header to false dont depend on better controllers PR, fix that stuff later split cors methods to be in a seperate controller for exposing apis remove protected definitions from apicontroller since controller has it
* | make download and redirectresponse publicBernhard Posselt2014-04-203-3/+3
|/
* Merge pull request #8183 from owncloud/move-security-headersMorris Jobke2014-04-161-7/+0
|\ | | | | Move security headers
| * Remove uneeded usages of nosniffLukas Reschke2014-04-131-7/+0
| |
* | default to GET request when no method is set to fix unittests, also set ↵Bernhard Posselt2014-04-123-14/+18
|/ | | | parsed json parameters on the post attribute