major refactoring under the hood
[pharext/pharext] / src / pharext / SourceDir / Pharext.php
index 2675a7899836d70d07b9e36b4b0d1ee637ad2150..8ca0901c24e696652e3ef0afa9f87b322e896f77 100644 (file)
@@ -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);
        }