| 1 | <?php |
||
| 23 | class TimerPlugin extends BasePlugin implements EventSubscriberInterface |
||
| 24 | { |
||
| 25 | 34 | public static function getSubscribedEvents() |
|
| 32 | |||
| 33 | /** |
||
| 34 | * It registers the timestamp of the book publication start. |
||
| 35 | * |
||
| 36 | * @param BaseEvent $event The event object that provides access to the application |
||
| 37 | */ |
||
| 38 | public function registerPublicationStart(BaseEvent $event) |
||
| 42 | |||
| 43 | /** |
||
| 44 | * It registers the timestamp of the book publication end. |
||
| 45 | * |
||
| 46 | * @param BaseEvent $event The event object that provides access to the application |
||
| 47 | */ |
||
| 48 | 34 | public function registerPublicationEnd(BaseEvent $event) |
|
| 52 | } |
||
| 53 |