nextcloud/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
app.php
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
middleware.php adjust license headers to new mail address 2014-05-11 17:54:08 +02:00