forked from Opifer/MediaBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOpiferMediaEvents.php
46 lines (40 loc) · 1.27 KB
/
OpiferMediaEvents.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
namespace Opifer\MediaBundle;
final class OpiferMediaEvents
{
/**
* Index event
*
* Called before any actions inside the indexAction in media controllers
* Receives the Opifer\MediaBundle\Event\ResponseEvent
*/
const MEDIA_CONTROLLER_INDEX = 'opifer_media.controller.index';
/**
* New event
*
* Called before any actions inside the newAction in MediaController
* Receives the Opifer\MediaBundle\Event\ResponseEvent
*/
const MEDIA_CONTROLLER_NEW = 'opifer_media.controller.new';
/**
* Edit event
*
* Called right after retrieving the to-be-edited media item
* Receives the Opifer\MediaBundle\Event\MediaResponseEvent
*/
const MEDIA_CONTROLLER_EDIT = 'opifer_media.controller.edit';
/**
* Update all event
*
* Called before any actions inside the updateAllAction in MediaController
* Receives the Opifer\MediaBundle\Event\ResponseEvent
*/
const MEDIA_CONTROLLER_UPDATEALL = 'opifer_media.controller.update_all';
/**
* Delete event
*
* Called right after retrieving the to-be-deleted media item
* Receives the Opifer\MediaBundle\Event\MediaResponseEvent
*/
const MEDIA_CONTROLLER_DELETE = 'opifer_media.controller.delete';
}