public function handle($path, $width, $height, $action)
    {
        $file = $this->filesystem->getFile($path);

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

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

@param string $path
@param int    $width
@param int    $height
@param string $action

@return string
Generate thumbnail url .