Changeset 13029
- Timestamp:
- 11/16/08 17:52:26 (8 months ago)
- Files:
-
- branches/1.2/lib/routing/sfObjectRoute.class.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.2/lib/routing/sfObjectRoute.class.php
r12753 r13029 158 158 } 159 159 160 if (!method_exists($className, $this->options['method'])) 161 { 162 throw new InvalidArgumentException(sprintf('The "%s::%s()" method does not exist.', $className, $this->options['method'])); 163 } 164 160 165 return call_user_func(array($className, $this->options['method']), $this->filterParameters($parameters)); 161 166 } … … 168 173 { 169 174 throw new InvalidArgumentException(sprintf('You must pass a "method" option for a %s object.', get_class($this))); 175 } 176 177 if (!method_exists($className, $this->options['method'])) 178 { 179 throw new InvalidArgumentException(sprintf('The "%s::%s()" method does not exist.', $className, $this->options['method'])); 170 180 } 171 181

