Skip to content

Commit

Permalink
Add missing PHPDoc in newly added classes/methods
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Grobelny <tomasz@grobelny.net>
  • Loading branch information
tomasz-grobelny committed Apr 4, 2019
1 parent 6451274 commit 705ad70
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/public/AppFramework/HttpContext.php
Expand Up @@ -19,6 +19,10 @@
use OCP\AppFramework\Http\Response;
use OCP\IRequest;

/**
* Class representing context available in middlewares during request processing
* @since 17.0.0
*/
class HttpContext {
/** @var IRequest */
public $request;
Expand Down
5 changes: 5 additions & 0 deletions lib/public/AppFramework/Middleware.php
Expand Up @@ -45,6 +45,11 @@ abstract class Middleware {

protected $context;

/**
* This method is called before processing request
* @param HttpContext $context the context of the currently processed request
* @since 17.0.0
*/
public function setContext(HttpContext $context) {
$this->context = $context;
}
Expand Down

0 comments on commit 705ad70

Please sign in to comment.