X-Git-Url: https://git.m6w6.name/?p=pharext%2Fpharext;a=blobdiff_plain;f=src%2Fpharext%2FSourceDir%2FBasic.php;h=13891d02a9b65eeb452a065e7453f4f9d6362086;hp=f960236c765fb9c1484c1bb268b58757f0021d81;hb=25b7d8e0878e236e592434c10b3eb76490126579;hpb=f136c13716ebb8be746e4be36b27745cafb5618c diff --git a/src/pharext/SourceDir/Basic.php b/src/pharext/SourceDir/Basic.php index f960236..13891d0 100644 --- a/src/pharext/SourceDir/Basic.php +++ b/src/pharext/SourceDir/Basic.php @@ -4,6 +4,7 @@ namespace pharext\SourceDir; use pharext\Cli\Args; use pharext\License; +use pharext\PackageInfo; use pharext\SourceDir; use FilesystemIterator; @@ -16,6 +17,7 @@ use RecursiveIteratorIterator; class Basic implements IteratorAggregate, SourceDir { use License; + use PackageInfo; private $path; @@ -26,9 +28,13 @@ class Basic implements IteratorAggregate, SourceDir public function getBaseDir() { return $this->path; } - + + /** + * @inheritdoc + * @return array + */ public function getPackageInfo() { - return []; + return $this->findPackageInfo($this->getBaseDir()); } public function getLicense() {