Issue #2828642 by eojthebrave: Wrong method signature in documentation for subscribing to an event
parent
1380ab9d45
commit
d558fbefc7
|
@ -2493,7 +2493,7 @@ function hook_validation_constraint_alter(array &$definitions) {
|
|||
* this class is subscribed to, and which methods on the class should be
|
||||
* called for each one. Example:
|
||||
* @code
|
||||
* public function getSubscribedEvents() {
|
||||
* public static function getSubscribedEvents() {
|
||||
* // Subscribe to kernel terminate with priority 100.
|
||||
* $events[KernelEvents::TERMINATE][] = array('onTerminate', 100);
|
||||
* // Subscribe to kernel request with default priority of 0.
|
||||
|
|
Loading…
Reference in New Issue