Issue #2828642 by eojthebrave: Wrong method signature in documentation for subscribing to an event

8.3.x
Alex Pott 2016-11-18 10:35:30 +00:00
parent 1380ab9d45
commit d558fbefc7
1 changed files with 1 additions and 1 deletions

View File

@ -2493,7 +2493,7 @@ function hook_validation_constraint_alter(array &$definitions) {
* this class is subscribed to, and which methods on the class should be * this class is subscribed to, and which methods on the class should be
* called for each one. Example: * called for each one. Example:
* @code * @code
* public function getSubscribedEvents() { * public static function getSubscribedEvents() {
* // Subscribe to kernel terminate with priority 100. * // Subscribe to kernel terminate with priority 100.
* $events[KernelEvents::TERMINATE][] = array('onTerminate', 100); * $events[KernelEvents::TERMINATE][] = array('onTerminate', 100);
* // Subscribe to kernel request with default priority of 0. * // Subscribe to kernel request with default priority of 0.