_registry = $registry; $this->_registry_name = $path; $this->_method = $method; } /** * Invoke the method added to the current callback. * * @return mixed Value returned by the current method. */ public function run() { $argv = func_get_args(); return $this->_registry->dispatch( $this->_registry_name, $this->_method, $argv ); } }