1. 27 Nov, 2014 4 commits
    • Lukas Reschke's avatar
      Pass \OC::$WEBROOT to the ctr · e35feada
      Lukas Reschke authored
      e35feada
    • Lukas Reschke's avatar
      Remove redundant code · fef32e63
      Lukas Reschke authored
      fef32e63
    • Lukas Reschke's avatar
      Use server container · d197f434
      Lukas Reschke authored
      d197f434
    • Lukas Reschke's avatar
      Add functions to modify cookies to response class · 04813907
      Lukas Reschke authored
      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)`.
      04813907
  2. 26 Nov, 2014 15 commits
  3. 25 Nov, 2014 21 commits