server/lib/public/appframework
Lukas Reschke 048139074d Add functions to modify cookies to response class
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)`.
2014-11-27 14:19:00 +01:00
..
db according to PHPDoc this function shall return the entity 2014-08-17 22:27:55 +02:00
http Add functions to modify cookies to response class 2014-11-27 14:19:00 +01:00
apicontroller.php add cors middleware 2014-05-09 23:34:41 +02:00
app.php Move the router classes to a namespace and expose it with a public interface 2014-03-10 14:04:58 +01:00
controller.php add dataresponse 2014-10-29 09:43:47 +01:00
http.php adjust license headers to new mail address 2014-05-11 17:54:08 +02:00
iapi.php Deprecate older API wrappers and calls 2014-11-12 17:39:25 +01:00
iappcontainer.php register middleware as string to not force request to be instantiated too early and thus not having url parameters 2014-04-09 23:59:57 +02:00
middleware.php adjust license headers to new mail address 2014-05-11 17:54:08 +02:00