Example #1
0
 /**
  * Change path
  *
  * @param string $path Go to the path
  * @return FileManager
  */
 public function in($path)
 {
     $this->path->updatePath($path);
     $this->file->setPath($this->path);
     $this->uploader->setPath($this->path);
     $this->folder->setPath($this->path);
     return $this;
 }
 /**
  * Update file when path manager is set up
  *
  * @param Path $path
  */
 protected function onPathUpdate(Path $path)
 {
     $this->file->setPath($path);
     $this->thumb->setPath($path);
 }