use pharext\Cli\Args;
use pharext\License;
+use pharext\PackageInfo;
use pharext\SourceDir;
use FilesystemIterator;
class Basic implements IteratorAggregate, SourceDir
{
use License;
+ use PackageInfo;
private $path;
public function getBaseDir() {
return $this->path;
}
-
+
+ /**
+ * @inheritdoc
+ * @return array
+ */
public function getPackageInfo() {
- return [];
+ return $this->findPackageInfo($this->getBaseDir());
}
public function getLicense() {
$rii = new RecursiveIteratorIterator($rci);
foreach ($rii as $path => $child) {
if (!$child->isDir()) {
- yield $path;
+ yield realpath($path);
}
}
}