Author: sevein
Date: Tue Jan 3 15:45:48 2012
New Revision: 10549
Log:
Renable magic __get method for sfEvent class, we ost this change during a
vendor merge recently
Modified:
trunk/vendor/symfony/lib/event_dispatcher/sfEvent.php
Modified: trunk/vendor/symfony/lib/event_dispatcher/sfEvent.php
==============================================================================
--- trunk/vendor/symfony/lib/event_dispatcher/sfEvent.php Tue Jan 3
15:27:21 2012 (r10548)
+++ trunk/vendor/symfony/lib/event_dispatcher/sfEvent.php Tue Jan 3
15:45:48 2012 (r10549)
@@ -129,7 +129,7 @@
*
* @return mixed The parameter value
*/
- public function offsetGet($name)
+ public function __get($name)
{
if (!array_key_exists($name, $this->parameters))
{
@@ -139,6 +139,13 @@
return $this->parameters[$name];
}
+ public function offsetGet($offset)
+ {
+ $args = func_get_args();
+
+ return call_user_func_array(array($this, '__get'), $args);
+ }
+
/**
* Sets a parameter (implements the ArrayAccess interface).
*
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.