public static function init() { $Class = get_called_class(); $dispatcher = EventProxy::getInstance(); $dispatcher->addListener(EventProxy::GET_TAG_CACHE, array(new $Class(), 'onGetTagcache')); }
public function boot() { $dispatcher = EventProxy::getInstance(); $dispatcher->addListener(EventProxy::GET_TAG_CACHE, array($this, 'onGetTagcache')); }