public function events($map) { foreach ($map as $name => $callback) { $this->_events->register($name, $callback); } return $this; }