コード例 #1
0
 /**
  * Process the form.
  * 
  * @return void
  */
 public function save()
 {
     $photo = $this->region->addPhoto($this->makePhoto());
     $this->file->move($photo->baseDir(), $photo->name);
     $this->thumbnail->make($photo->path, $photo->thumbnail_path);
 }