Skip to content
This repository has been archived by the owner on Mar 5, 2022. It is now read-only.

Commit

Permalink
Use the event result as well instead of the data['path'] (BC compatible)
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Krämer committed Aug 18, 2015
1 parent 1ab0357 commit 3a1e6e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Event/ImageProcessingListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ public function imagePath(Event $Event) {
protected function _buildLocalPath(Event $Event) {
extract($Event->data);
$path = $this->_buildPath($image, true, $hash);
$Event->data['path'] = '/' . $path;
$Event->data['path'] = $Event->result = '/' . $path;
$Event->stopPropagation();
}

Expand Down Expand Up @@ -367,7 +367,7 @@ protected function _buildAmazonS3Path(Event $Event) {
$image['path'] = str_replace('\\', '/', $image['path']);
$bucketPrefix = !empty($Event->data['options']['bucketPrefix']) && $Event->data['options']['bucketPrefix'] === true;

$Event->data['path'] = $this->_buildCloudFrontDistributionUrl($http, $image['path'], $bucket, $bucketPrefix, $cfDist);
$Event->data['path'] = $Event->result = $this->_buildCloudFrontDistributionUrl($http, $image['path'], $bucket, $bucketPrefix, $cfDist);
$Event->stopPropagation();
}

Expand Down

0 comments on commit 3a1e6e8

Please sign in to comment.