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

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

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

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

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

@param ImageInterface $image Image

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