Removes a listener from the active listeners.
public detach ( callback | CakeEventListener $callable, string $eventKey = null ) : void | ||
$callable | callback | CakeEventListener | any valid PHP callback type or an instance of CakeEventListener |
$eventKey | string | The event unique identifier name with which the callback has been associated |
Результат | void |