Browse Source

Merge pull request #7217 from softark/docs-guide-concept-event-fix

docs/guide/concept-events.md - minor fix [ci skip]
tags/2.0.3
Alexander Makarov 10 years ago
parent
commit
2265974f54
  1. 2
      docs/guide/concept-events.md

2
docs/guide/concept-events.md

@ -18,7 +18,7 @@ when the event it is attached to is triggered. You can use any of the following
- a global PHP function specified as a string (without parentheses), e.g., `'trim'`; - a global PHP function specified as a string (without parentheses), e.g., `'trim'`;
- an object method specified as an array of an object and a method name as a string (without parentheses), e.g., `[$object, 'methodName']`; - an object method specified as an array of an object and a method name as a string (without parentheses), e.g., `[$object, 'methodName']`;
- a static class method specified as an array of a class name and a method name as a string (without parentheses), e.g., `[$class, 'methodName']`; - a static class method specified as an array of a class name and a method name as a string (without parentheses), e.g., `['ClassName', 'methodName']`;
- an anonymous function, e.g., `function ($event) { ... }`. - an anonymous function, e.g., `function ($event) { ... }`.
The signature of an event handler is: The signature of an event handler is:

Loading…
Cancel
Save