protected function dispatchChunkEvents($uploaded, ResponseInterface $response, Request $request, $isLast)
    {
        $dispatcher = $this->container->get('event_dispatcher');

        // dispatch post upload event (both the specific and the general)
        $postUploadEvent = new PostChunkUploadEvent($uploaded, $response, $request, $isLast, $this->type, $this->config);
        $dispatcher->dispatch(UploadEvents::POST_CHUNK_UPLOAD, $postUploadEvent);
        $dispatcher->dispatch(sprintf('%s.%s', UploadEvents::POST_CHUNK_UPLOAD, $this->type), $postUploadEvent);
    }
protected function dispatchChunkEvents($uploaded, ResponseInterface $response, Request $request, $isLast)
    {
        $dispatcher = $this->container->get('event_dispatcher');

        // dispatch post upload event (both the specific and the general)
        $postUploadEvent = new PostChunkUploadEvent($uploaded, $response, $request, $isLast, $this->type, $this->config);
        $dispatcher->dispatch(UploadEvents::POST_CHUNK_UPLOAD, $postUploadEvent);
        $dispatcher->dispatch(sprintf('%s.%s', UploadEvents::POST_CHUNK_UPLOAD, $this->type), $postUploadEvent);
    }
protected function dispatchChunkEvents ( $ uploaded , ResponseInterface $ response , Request $ request , $ isLast ) { $ dispatcher = $ this -> container -> get ( 'event_dispatcher' ) ; // dispatch post upload event (both the specific and the general) $ postUploadEvent = new PostChunkUploadEvent ( $ uploaded , $ response , $ request , $ isLast , $ this -> type , $ this -> config ) ; $ dispatcher -> dispatch ( UploadEvents :: POST_CHUNK_UPLOAD , $ postUploadEvent ) ; $ dispatcher -> dispatch ( sprintf ( '%s.%s' , UploadEvents :: POST_CHUNK_UPLOAD , $ this -> type ) , $ postUploadEvent ) ; }
This function is a helper function which dispatches post chunk upload event.

@param mixed             $uploaded - The uploaded chunk
@param responseInterface $response - A response object
@param Request           $request  - The request object
@param bool              $isLast   - True if this is the last chunk, false otherwise
This function is a helper function which dispatches post chunk upload event .