Permalink
Browse files

changing __invoke to filter to be consistent with Zend\Filter\Filter

  • Loading branch information...
khorner committed Mar 7, 2012
1 parent a435e53 commit 75c041d62a5d87b8ed13b6fd0ca7175cda75f07c
Showing with 2 additions and 2 deletions.
  1. +2 −2 library/Zend/Filter/File/Decrypt.php
@@ -74,7 +74,7 @@ public function setFilename($filename = null)
* @param string $value Full path of file to change
* @return string The filename which has been set, or false when there were errors
*/
- public function __invoke($value)
+ public function filter($value)
{
if (!file_exists($value)) {
throw new Exception\InvalidArgumentException("File '$value' not found");
@@ -93,7 +93,7 @@ public function __invoke($value)
throw new Exception\RuntimeException("Problem while reading file '$value'");
}
- $decrypted = parent::__invoke($content);
+ $decrypted = parent::filter($content);
$result = file_put_contents($this->_filename, $decrypted);
if (!$result) {

0 comments on commit 75c041d

Please sign in to comment.