Example #1
0
 public function __construct($directory)
 {
     parent::__construct($directory);
     if (!self::isProjectPath($this->directory)) {
         throw new InvalidArgumentException("No installer found in \"{$this->directory}\"");
     }
 }
Example #2
0
 /**
  * Create a child library
  *
  * @param string $path
  * @return Library
  */
 protected function createChildLibrary($path)
 {
     if (Module::isModulePath($path)) {
         return new Module($path, $this);
     }
     if (Library::isLibraryPath($path)) {
         return new Library($path, $this);
     }
     return null;
 }