Esempio n. 1
0
 /**
  * Forget a listener.
  *
  * example:
  *
  *      Events::listen('an.event', [$this, 'onAnEvent']);
  *      ...
  *      Events::forget('an.event', [$this, 'onAnEvent']);
  *
  * @param string   $eventName
  * @param callable $listener
  */
 public static function forget(string $eventName, callable $listener)
 {
     static::instantiate();
     static::$instance->removeListener($eventName, $listener);
 }