Exemple #1
0
 public function onSuccessImageUpload(Image $image)
 {
     $this->appEventLogger->saveLog(sprintf('User [%s#%s] <b>has UPLOADED</b> the %sImage [%s#%s]%s', $this->user->getId(), $this->user->getUsername(), isset($this->fileRoot) ? sprintf('<a href="%s/%s">', $this->fileRoot, $image->getComposedFilePath()) : '', $image->getId(), $image->getOriginalName(), isset($this->fileRoot) ? '</a>' : ''), 'image_upload', $this->user->getId());
 }