Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

fix misspelled getCacheStorge() #3184

Closed
wants to merge 1 commit into from

2 participants

Gordon Stratton Matthew Weier O'Phinney
Gordon Stratton
gws commented
  • Add a new method: getCacheStorage()
  • Mark old method as deprecated and have it call the new method
Gordon Stratton gws fix misspelled getCacheStorge()
- Add a new method: getCacheStorage()
- Mark old method as deprecated and have it call the new method
1b3cd36
Deleted user Unknown referenced this pull request from a commit
Matthew Weier O'Phinney weierophinney Merge branch 'hotfix/3184'
Close #3184
5042e15
Deleted user Unknown referenced this pull request from a commit
Matthew Weier O'Phinney weierophinney Merge branch 'hotfix/3184' into develop
Forward port #3184
33649ee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 8, 2012
  1. Gordon Stratton

    fix misspelled getCacheStorge()

    gws authored
    - Add a new method: getCacheStorage()
    - Mark old method as deprecated and have it call the new method
This page is out of date. Refresh to see the latest.
Showing with 14 additions and 6 deletions.
  1. +14 −6 library/Zend/Session/SaveHandler/Cache.php
20 library/Zend/Session/SaveHandler/Cache.php
View
@@ -86,7 +86,7 @@ public function close()
*/
public function read($id)
{
- return $this->getCacheStorge()->getItem($id);
+ return $this->getCacheStorage()->getItem($id);
}
/**
@@ -98,7 +98,7 @@ public function read($id)
*/
public function write($id, $data)
{
- return $this->getCacheStorge()->setItem($id, $data);
+ return $this->getCacheStorage()->setItem($id, $data);
}
/**
@@ -109,7 +109,7 @@ public function write($id, $data)
*/
public function destroy($id)
{
- return $this->getCacheStorge()->removeItem($id);
+ return $this->getCacheStorage()->removeItem($id);
}
/**
@@ -120,7 +120,7 @@ public function destroy($id)
*/
public function gc($maxlifetime)
{
- $cache = $this->getCacheStorge();
+ $cache = $this->getCacheStorage();
if ($cache instanceof ClearExpiredCacheStorage) {
return $cache->clearExpired();
}
@@ -140,12 +140,20 @@ public function setCacheStorage(CacheStorage $cacheStorage)
}
/**
- * Get Cache Storage Adapter Object
+ * Get cache storage
*
* @return CacheStorage
*/
- public function getCacheStorge()
+ public function getCacheStorage()
{
return $this->cacheStorage;
}
+
+ /**
+ * @deprecated Misspelled method - use getCacheStorage() instead
+ */
+ public function getCacheStorge()
+ {
+ return $this->getCacheStorage();
+ }
}
Something went wrong with that request. Please try again.