Changeset 19581
- Timestamp:
- 06/26/09 09:14:12 (8 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
components/dependency_injection/trunk/lib/sfServiceContainerBuilder.php
r19576 r19581 220 220 $callable[0] = $this->getService((string) $callable[0]); 221 221 } 222 elseif (is_array($callable)) 223 { 224 $callable[0] = $this->resolveValue($callable[0]); 225 } 222 226 223 227 if (!is_callable($callable)) components/dependency_injection/trunk/lib/sfServiceContainerDumperPhp.php
r19545 r19581 153 153 else 154 154 { 155 return sprintf(" %s::%s(\$instance);\n", $callable[0], $callable[1]);155 return sprintf(" call_user_func(array(%s, '%s'), \$instance);\n", $this->dumpValue($callable[0]), $callable[1]); 156 156 } 157 157 }

