X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fpharext%2FSourceDir%2FPharext.php;h=8ca0901c24e696652e3ef0afa9f87b322e896f77;hb=861260c111bff72f60665393660b6f5375559510;hp=2675a7899836d70d07b9e36b4b0d1ee637ad2150;hpb=d774f309d3216bf1923f6bd5b49ee0fb287e0ce7;p=pharext%2Fpharext diff --git a/src/pharext/SourceDir/Pharext.php b/src/pharext/SourceDir/Pharext.php index 2675a78..8ca0901 100644 --- a/src/pharext/SourceDir/Pharext.php +++ b/src/pharext/SourceDir/Pharext.php @@ -3,6 +3,7 @@ namespace pharext\SourceDir; use pharext\Command; +use pharext\Exception; use pharext\SourceDir; /** @@ -35,7 +36,7 @@ class Pharext implements \IteratorAggregate, SourceDir $callable = include "$path/pharext_package.php"; if (!is_callable($callable)) { - throw new \Exception("Package hook did not return a callable"); + throw new Exception("Package hook did not return a callable"); } $this->iter = $callable($cmd, $path); }