Example #1
0
 /**
  * As we need the metadata from FSObject, we need one of those. The
  * FDirectory a also has contents.
  *
  * Actually the second param should have a type like any, as we expect
  * a list from things of the same type.
  *
  * @param   FSObject    $fs_object
  * @param   \Closure    $contents_lazy
  */
 public function __construct(FSObject $fs_object, \Closure $contents_lazy)
 {
     parent::__construct($fs_object->flightcontrol(), $fs_object->path());
     $this->contents_lazy = $contents_lazy;
 }
Example #2
0
 public function __construct(FixedFDirectory $directory)
 {
     parent::__construct($directory->flightcontrol(), $directory->path());
     $this->directory = $directory;
 }