X-Git-Url: https://git.m6w6.name/?p=pharext%2Fpharext;a=blobdiff_plain;f=src%2Fpharext%2FSourceDir%2FBasic.php;h=e5b2d230c36ea071dc4e28133a09895df2abd7f1;hp=13891d02a9b65eeb452a065e7453f4f9d6362086;hb=d5207a43143f6c41520d024ba682cd5d69517416;hpb=f604c0c0a18cd859ebf8237eb0c7bf2786c14302 diff --git a/src/pharext/SourceDir/Basic.php b/src/pharext/SourceDir/Basic.php index 13891d0..e5b2d23 100644 --- a/src/pharext/SourceDir/Basic.php +++ b/src/pharext/SourceDir/Basic.php @@ -18,13 +18,13 @@ class Basic implements IteratorAggregate, SourceDir { use License; use PackageInfo; - + private $path; - + public function __construct($path) { - $this->path = $path; + $this->path = realpath($path); } - + public function getBaseDir() { return $this->path; } @@ -36,7 +36,7 @@ class Basic implements IteratorAggregate, SourceDir public function getPackageInfo() { return $this->findPackageInfo($this->getBaseDir()); } - + public function getLicense() { if (($file = $this->findLicense($this->getBaseDir()))) { return $this->readLicense($file); @@ -47,7 +47,7 @@ class Basic implements IteratorAggregate, SourceDir public function getArgs() { return []; } - + public function setArgs(Args $args) { }