-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathEvents.php
32 lines (29 loc) · 835 Bytes
/
Events.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
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace App;
/**
* This class defines the names of all the events dispatched in
* the Symfony Demo application. It's not mandatory to create a
* class like this, but it's considered a good practice.
*
* @author Oleg Voronkovich <[email protected]>
*/
final class Events
{
/**
* For the event naming conventions, see:
* https://symfony.com/doc/current/components/event_dispatcher.html#naming-conventions.
*
* @Event("Symfony\Component\EventDispatcher\GenericEvent")
*
* @var string
*/
public const COMMENT_CREATED = 'comment.created';
}