Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/zendframework/zendframework#7033-minor-cache-doc…
Browse files Browse the repository at this point in the history
…block-fixes'

Close zendframework/zendframework#7033
  • Loading branch information
Ocramius committed Dec 16, 2014
2 parents babe345 + b70a627 commit 8e5ae36
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Storage/Adapter/AdapterOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class AdapterOptions extends AbstractOptions
/**
* The adapter using these options
*
* @var null|Filesystem
* @var null|StorageInterface
*/
protected $adapter;

Expand Down
2 changes: 1 addition & 1 deletion src/Storage/Adapter/DbaIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class DbaIterator implements IteratorInterface
/**
* The apc storage instance
*
* @var Apc
* @var Dba
*/
protected $storage;

Expand Down
4 changes: 2 additions & 2 deletions src/Storage/Adapter/XCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class XCache extends AbstractAdapter implements
/**
* Constructor
*
* @param null|array|Traversable|ApcOptions $options
* @param null|array|Traversable|XCacheOptions $options
* @throws Exception\ExceptionInterface
*/
public function __construct($options = null)
Expand Down Expand Up @@ -74,7 +74,7 @@ public function __construct($options = null)
/**
* Set options.
*
* @param array|Traversable|ApcOptions $options
* @param array|Traversable|XCacheOptions $options
* @return XCache
* @see getOptions()
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Storage/Plugin/IgnoreUserAbort.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function attach(EventManagerInterface $events, $priority = 1)
public function onBefore(Event $event)
{
if ($this->activatedTarget === null && !ignore_user_abort(true)) {
$this->activatedTarget = $event->getTarget();
$this->activatedTarget = $event->getStorage();
}
}

Expand All @@ -101,7 +101,7 @@ public function onBefore(Event $event)
*/
public function onAfter(Event $event)
{
if ($this->activatedTarget === $event->getTarget()) {
if ($this->activatedTarget === $event->getStorage()) {
// exit if connection aborted
if ($this->getOptions()->getExitOnAbort() && connection_aborted()) {
exit;
Expand Down

0 comments on commit 8e5ae36

Please sign in to comment.