Changeset 70
- Timestamp:
- 12/10/06 12:02:21 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/XJConf/converters/FactoryMethodValueConverter.php
r69 r70 61 61 $refClass = new ReflectionClass($this->className); 62 62 $refMethod = $refClass->getMethod($this->methodName); 63 if (!$refMethod->isStatic()) { 64 throw new ValueConversionException('Could not create instance of "' . $this->className . '" using the factory method "' . $this->methodName . '" as it is no static method.'); 65 } 63 66 if (method_exists($refMethod, 'invokeArgs') == true) { 64 67 $instance = $refMethod->invokeArgs(null, $cParams);
