Add support symlink into Autoload.

This commit is contained in:
Alexander Demidov
2013-10-21 15:51:24 +04:00
parent a51545268d
commit 645ffd9ed1
3 changed files with 22 additions and 3 deletions

View File

@ -0,0 +1,18 @@
<?php
class AsciiSortedIterator extends SplHeap
{
public function __construct(Iterator $iterator)
{
foreach ($iterator as $item) {
$this->insert($item);
}
}
public function compare($b,$a)
{
/**
* @var $a SplFileInfo
* @var $b SplFileInfo
*/
return strcmp($a->getPath() . DIRECTORY_SEPARATOR . $a->getFileName(), $b->getPath() . DIRECTORY_SEPARATOR . $b->getFileName());
}
}