Devise\Media\Encoding\ZencoderJob::handle PHP Method

handle() public method

Fire events when you see this job has been called back
public handle ( $output, $storagePath ) : void
$output
$storagePath
return void
    public function handle($output, $storagePath)
    {
        switch ($output['state']) {
            case 'finished':
                $filename = $output['label'];
                $fromUrl = $output['url'];
                $file = $this->FileDownloader->download($fromUrl, $storagePath, $filename);
                $this->Event->fire('devise.encoding.zencoder.finished', [$file, $output]);
                break;
            default:
                $this->Event->fire('devise.encoding.zencoder.error', [$output]);
                break;
        }
    }