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

Commit

Permalink
Merge branch 'master' of git://git.zendframework.com/zf
Browse files Browse the repository at this point in the history
  • Loading branch information
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ClassFileLocator.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function __construct($dirOrIterator = '.')
throw new Exception\InvalidArgumentException('Expected a valid directory name');
}

$dirOrIterator = new RecursiveDirectoryIterator($dirOrIterator);
$dirOrIterator = new RecursiveDirectoryIterator($dirOrIterator, RecursiveDirectoryIterator::FOLLOW_SYMLINKS);
}
if (!$dirOrIterator instanceof DirectoryIterator) {
throw new Exception\InvalidArgumentException('Expected a DirectoryIterator');
Expand Down
2 changes: 1 addition & 1 deletion src/Transfer/Adapter/AbstractAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ public function addPrefixPaths(array $spec)
* @param boolean $breakChainOnFailure If the validation chain should stop an failure
* @param string|array $options Options to set for the validator
* @param string|array $files Files to limit this validator to
* @return Zend_File_Transfer_Adapter
* @return \Zend\File\Transfer\Adapter\AbstractAdapter
*/
public function addValidator($validator, $breakChainOnFailure = false, $options = null, $files = null)
{
Expand Down
3 changes: 2 additions & 1 deletion src/Transfer/Adapter/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ public function isValid($files = null)
'name' => $files,
'error' => 1));
$validator = $this->_validators['Zend\Validator\File\Upload'];
$validator->setFiles($temp)
$validator->setTranslator($this->getTranslator())
->setFiles($temp)
->isValid($files, null);
$this->_messages += $validator->getMessages();
return false;
Expand Down

0 comments on commit de6b908

Please sign in to comment.