public function setEvents(array $events)
	{
		if ($events) {
			$this->ensureEvents();
			
			foreach ($events as $name => $handler) {
				$this->on($name, $handler);
			}
		}
	}
public function setEvents(array $events)
	{
		if ($events) {
			$this->ensureEvents();
			
			foreach ($events as $name => $handler) {
				$this->on($name, $handler);
			}
		}
	}
public function setEvents ( array $ events ) { if ( $ events ) { $ this -> ensureEvents ( ) ; foreach ( $ events as $ name => $ handler ) { $ this -> on ( $ name , $ handler ) ; } } }
set events, so can set event->handler by config

@param array $events array($eventName => $handler)
@return void
set events so can set event - > handler by config