mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
commit
785734e052
1 changed files with 3 additions and 3 deletions
|
@ -81,7 +81,7 @@ class CakeEventManager {
|
||||||
/**
|
/**
|
||||||
* Adds a new listener to an event. Listeners
|
* Adds a new listener to an event. Listeners
|
||||||
*
|
*
|
||||||
* @param callback|CakeEventListener $callable PHP valid callback type or instance of CakeEventListener to be called
|
* @param callable|CakeEventListener $callable PHP valid callback type or instance of CakeEventListener to be called
|
||||||
* when the event named with $eventKey is triggered. If a CakeEventListener instance is passed, then the `implementedEvents`
|
* when the event named with $eventKey is triggered. If a CakeEventListener instance is passed, then the `implementedEvents`
|
||||||
* method will be called on the object to register the declared events individually as methods to be managed by this class.
|
* method will be called on the object to register the declared events individually as methods to be managed by this class.
|
||||||
* It is possible to define multiple event handlers per event name.
|
* It is possible to define multiple event handlers per event name.
|
||||||
|
@ -146,7 +146,7 @@ class CakeEventManager {
|
||||||
*
|
*
|
||||||
* @param array $function the array taken from a handler definition for an event
|
* @param array $function the array taken from a handler definition for an event
|
||||||
* @param CakeEventListener $object The handler object
|
* @param CakeEventListener $object The handler object
|
||||||
* @return callback
|
* @return callable
|
||||||
*/
|
*/
|
||||||
protected function _extractCallable($function, $object) {
|
protected function _extractCallable($function, $object) {
|
||||||
$method = $function['callable'];
|
$method = $function['callable'];
|
||||||
|
@ -161,7 +161,7 @@ class CakeEventManager {
|
||||||
/**
|
/**
|
||||||
* Removes a listener from the active listeners.
|
* Removes a listener from the active listeners.
|
||||||
*
|
*
|
||||||
* @param callback|CakeEventListener $callable any valid PHP callback type or an instance of CakeEventListener
|
* @param callable|CakeEventListener $callable any valid PHP callback type or an instance of CakeEventListener
|
||||||
* @param string $eventKey The event unique identifier name with which the callback has been associated
|
* @param string $eventKey The event unique identifier name with which the callback has been associated
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue