Skip to content

Commit

Permalink
add HTTP Cache 304 responder
Browse files Browse the repository at this point in the history
  • Loading branch information
koriym committed Oct 17, 2018
1 parent bf37c01 commit 060af4b
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions src/Extension/Application/AbstractApp.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,16 @@
use BEAR\Resource\ResourceInterface;
use BEAR\Sunday\Extension\Error\ErrorInterface;
use BEAR\Sunday\Extension\Router\RouterInterface;
use BEAR\Sunday\Extension\Transfer\HttpCacheInterface;
use BEAR\Sunday\Extension\Transfer\TransferInterface;

class AbstractApp implements AppInterface
{
/**
* @var HttpCacheInterface
*/
public $httpCache;

/**
* @var RouterInterface
*/
Expand All @@ -32,17 +38,20 @@ class AbstractApp implements AppInterface
public $error;

/**
* @param RouterInterface $router Resource router
* @param TransferInterface $responder Resource responder
* @param ResourceInterface $resource BEAR.Resource client
* @param ErrorInterface $error Error handler
* @param HttpCacheInterface $httpCache HTTP Cache 304 responder
* @param RouterInterface $router Resource router
* @param TransferInterface $responder Resource responder
* @param ResourceInterface $resource BEAR.Resource client
* @param ErrorInterface $error Error handler
*/
public function __construct(
HttpCacheInterface $httpCache,
RouterInterface $router,
TransferInterface $responder,
ResourceInterface $resource,
ErrorInterface $error
) {
$this->httpCache = $httpCache;
$this->router = $router;
$this->responder = $responder;
$this->resource = $resource;
Expand Down

0 comments on commit 060af4b

Please sign in to comment.