Esempio n. 1
0
 /**
  * Returns the event handler class
  *
  * @return Eden\Core\Event
  */
 public function event()
 {
     return Event::i();
 }
Esempio n. 2
0
 /**
  * Stops listening to an event
  *
  * @param string|null
  * @param callable|null
  *
  * @return Eden\Core\Base
  */
 public function unlisten($event = null, $callable = null)
 {
     Argument::i()->test(1, 'string', 'null')->test(2, 'callable', 'null');
     Event::i()->unlisten($event, $callable);
     return $this;
 }