Permalink
Browse files

Added the new @Event annotation

  • Loading branch information...
1 parent e0b5965 commit 9755f38406798a948dafed716f61173f7ec3a670 @javiereguiluz committed May 5, 2016
Showing with 22 additions and 0 deletions.
  1. +22 −0 Event/EasyAdminEvents.php
@@ -17,32 +17,54 @@
final class EasyAdminEvents
{
// Events related to initialization
+ /** @Event("Symfony\Component\EventDispatcher\GenericEvent") */
const PRE_INITIALIZE = 'easy_admin.pre_initialize';
+ /** @Event("Symfony\Component\EventDispatcher\GenericEvent") */
const POST_INITIALIZE = 'easy_admin.post_initialize';
// Events related to backend views
+ /** @Event("Symfony\Component\EventDispatcher\GenericEvent") */
const PRE_DELETE = 'easy_admin.pre_delete';
+ /** @Event("Symfony\Component\EventDispatcher\GenericEvent") */
const POST_DELETE = 'easy_admin.post_delete';
+ /** @Event("Symfony\Component\EventDispatcher\GenericEvent") */
const PRE_EDIT = 'easy_admin.pre_edit';
+ /** @Event("Symfony\Component\EventDispatcher\GenericEvent") */
const POST_EDIT = 'easy_admin.post_edit';
+ /** @Event("Symfony\Component\EventDispatcher\GenericEvent") */
const PRE_LIST = 'easy_admin.pre_list';
+ /** @Event("Symfony\Component\EventDispatcher\GenericEvent") */
const POST_LIST = 'easy_admin.post_list';
+ /** @Event("Symfony\Component\EventDispatcher\GenericEvent") */
const PRE_NEW = 'easy_admin.pre_new';
+ /** @Event("Symfony\Component\EventDispatcher\GenericEvent") */
const POST_NEW = 'easy_admin.post_new';
+ /** @Event("Symfony\Component\EventDispatcher\GenericEvent") */
const PRE_SEARCH = 'easy_admin.pre_search';
+ /** @Event("Symfony\Component\EventDispatcher\GenericEvent") */
const POST_SEARCH = 'easy_admin.post_search';
+ /** @Event("Symfony\Component\EventDispatcher\GenericEvent") */
const PRE_SHOW = 'easy_admin.pre_show';
+ /** @Event("Symfony\Component\EventDispatcher\GenericEvent") */
const POST_SHOW = 'easy_admin.post_show';
// Events related to Doctrine entities
+ /** @Event("Symfony\Component\EventDispatcher\GenericEvent") */
const PRE_PERSIST = 'easy_admin.pre_persist';
+ /** @Event("Symfony\Component\EventDispatcher\GenericEvent") */
const POST_PERSIST = 'easy_admin.post_persist';
+ /** @Event("Symfony\Component\EventDispatcher\GenericEvent") */
const PRE_UPDATE = 'easy_admin.pre_update';
+ /** @Event("Symfony\Component\EventDispatcher\GenericEvent") */
const POST_UPDATE = 'easy_admin.post_update';
+ /** @Event("Symfony\Component\EventDispatcher\GenericEvent") */
const PRE_REMOVE = 'easy_admin.pre_remove';
+ /** @Event("Symfony\Component\EventDispatcher\GenericEvent") */
const POST_REMOVE = 'easy_admin.post_remove';
// Events related to Doctrine Query Builder usage
+ /** @Event("Symfony\Component\EventDispatcher\GenericEvent") */
const POST_LIST_QUERY_BUILDER = 'easy_admin.post_list_query_builder';
+ /** @Event("Symfony\Component\EventDispatcher\GenericEvent") */
const POST_SEARCH_QUERY_BUILDER = 'easy_admin.post_search_query_builder';
}

0 comments on commit 9755f38

Please sign in to comment.