Skip to content

Commit

Permalink
Merge pull request #120 from koriym/http-cache-app
Browse files Browse the repository at this point in the history
HTTP Cache 304 responder in default
  • Loading branch information
koriym authored Oct 17, 2018
2 parents 3d5a539 + 060af4b commit 0d08490
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 0d08490

Please sign in to comment.