Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nilov authored Aug 16, 2016
1 parent 7926542 commit f8dcdef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ if ($form->isValid()) {

Bundle has 3 events:

- glavweb_uploader.validation. // First event, will execute before your file will be uploaded
- glavweb_uploader.validation; // First event, will execute before your file will be uploaded
- glavweb_uploader.pre_upload; // Will execute before your file will be uploaded
- glavweb_uploader.post_upload; // Will execute after your file will be uploaded
- glavweb_uploader.post_upload. // Will execute after your file will be uploaded

### Example

Expand Down Expand Up @@ -186,7 +186,7 @@ Other listeners work on a similar logics.
Also you can define listeners only for your context, as example if context is "article":

article_post_upload_listener:
class: AppBundle\Listener\PostUploadListener
class: AppBundle\Listener\ArticlePostUploadListener
tags:
- { name: kernel.event_listener, event: glavweb_uploader.post_upload_article, method: onPostUpload }

0 comments on commit f8dcdef

Please sign in to comment.