private function getCounterValue(PluginProxy $proxy) { $value = null; $params = array('counter' => &$value); $proxy->processEvent('increment', $params); return $value; }
private function addListener($hook, PluginProxy $proxy) { $proxy->addListener($hook['event'], $hook['callback'], $hook['recall_event']); $this->event_manager->addListener($hook['event'], $proxy, 'processEvent', true); }