Esempio n. 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());
 }
Esempio n. 2
0
 /**
  * @param Image $image
  * @return string
  */
 private function composeImageLocation(Image $image)
 {
     return sprintf('%s/%s', $this->imageFileRoot, $image->getComposedFilePath());
 }