Beispiel #1
0
 /**
  * Handle the command.
  *
  * @param MountManager $manager
  * @return File
  */
 public function handle(MountManager $manager)
 {
     try {
         return $manager->get($this->file->location());
     } catch (\Exception $e) {
         return null;
     }
 }
Beispiel #2
0
 /**
  * Handle the command.
  *
  * @param Image $image
  * @return Image
  */
 public function handle(Image $image)
 {
     return $image->make($this->file->location())->setOutput('image');
 }
Beispiel #3
0
 /**
  * Handle the command.
  *
  * @param MountManager $manager
  * @return File
  */
 public function handle(MountManager $manager)
 {
     return $manager->get($this->file->location());
 }