public function dispatchImageOnUploadEvent(ImageInterface $image)
    {
        $imageUploadedEvent = new ImageUploadedEvent($image);

        $this->eventDispatcher->dispatch(
            ElcodiMediaEvents::IMAGE_ONUPLOAD,
            $imageUploadedEvent
        );

        return $this;
    }
public function dispatchImageOnUploadEvent(ImageInterface $image)
    {
        $imageUploadedEvent = new ImageUploadedEvent($image);

        $this->eventDispatcher->dispatch(
            ElcodiMediaEvents::IMAGE_ONUPLOAD,
            $imageUploadedEvent
        );

        return $this;
    }
public function dispatchImageOnUploadEvent ( ImageInterface $ image ) { $ imageUploadedEvent = new ImageUploadedEvent ( $ image ) ; $ this -> eventDispatcher -> dispatch ( ElcodiMediaEvents :: IMAGE_ONUPLOAD , $ imageUploadedEvent ) ; return $ this ; }
Create image on uploaded event.

@param ImageInterface $image Image

@return $this self Object
Create image on uploaded event .