Skip to content

Commit

Permalink
removing shutdown function
Browse files Browse the repository at this point in the history
  • Loading branch information
swimson committed Jan 12, 2016
1 parent 514e2bc commit 2955a7d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 27 deletions.
9 changes: 0 additions & 9 deletions src/Adapters/GenericAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,6 @@ public function isCachingEnabled(Request $request)
return true;
}

/**
* @param Request $request
* @return bool
*/
public function captureResponseOnShutdown(Request $request)
{
return false;
}

/**
* @param Request $request
* @param Response $response
Expand Down
6 changes: 0 additions & 6 deletions src/CacheAdapterInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ interface CacheAdapterInterface
*/
public function isCachingEnabled(Request $request);

/**
* @param Request $request
* @return boolean
*/
public function captureResponseOnShutdown(Request $request);

/**
* @param Request $request
* @param Response $response
Expand Down
12 changes: 0 additions & 12 deletions src/CachedReverseProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,6 @@ public function __construct(CacheAdapterInterface $adapter)
{
$this->request = Request::createFromGlobals();
$this->adapter = $adapter;

if ($this->adapter->captureResponseOnShutdown($this->request)) {
register_shutdown_function(array($this, 'handleShutdown'));
}
}

/**
*
*/
public function handleShutdown()
{
$this->buildAndCacheResponse();
}

/**
Expand Down

0 comments on commit 2955a7d

Please sign in to comment.