diff --git a/src/Events/ImageWasDeleted.php b/src/Events/ImageWasDeleted.php new file mode 100755 index 00000000..2f75b311 --- /dev/null +++ b/src/Events/ImageWasDeleted.php @@ -0,0 +1,22 @@ +path = $path; + } + + /** + * @return string + */ + public function path() + { + return $this->path; + } + +} diff --git a/src/Events/ImageWasRenamed.php b/src/Events/ImageWasRenamed.php new file mode 100755 index 00000000..d2c8d72a --- /dev/null +++ b/src/Events/ImageWasRenamed.php @@ -0,0 +1,28 @@ +old_path = $old_path; + $this->new_path = $new_path; + } + + /** + * @return string + */ + public function old_path() + { + return $this->old_path; + } + + public function new_path() + { + return $this->new_path; + } + +} diff --git a/src/controllers/DeleteController.php b/src/controllers/DeleteController.php index 9b535b13..191e0022 100644 --- a/src/controllers/DeleteController.php +++ b/src/controllers/DeleteController.php @@ -1,10 +1,12 @@ file_type) { File::delete($thumb_to_delete); } diff --git a/src/controllers/RenameController.php b/src/controllers/RenameController.php index d4612ce4..9d5c777b 100644 --- a/src/controllers/RenameController.php +++ b/src/controllers/RenameController.php @@ -1,11 +1,13 @@