Skip to content

Commit

Permalink
Added the new @event annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed May 5, 2016
1 parent e0b5965 commit 9755f38
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Event/EasyAdminEvents.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.