diff --git a/components/event_dispatcher.rst b/components/event_dispatcher.rst index 658de8c358f..67aa53ef165 100644 --- a/components/event_dispatcher.rst +++ b/components/event_dispatcher.rst @@ -262,7 +262,7 @@ order. Start by creating this custom event class and documenting it:: */ class OrderPlacedEvent extends Event { - const NAME = 'order.placed'; + public const NAME = 'order.placed'; protected $order;