public function handle($path, $width, $height, $action) { $file = $this->filesystem->getFile($path); return $this->urlGenerator->generate('thumb', ['width' => $width, 'height' => $height, 'action' => $action[0], 'file' => $file->getPath()]); }