Changeset 11277
- Timestamp:
- 09/01/08 15:31:33 (5 years ago)
- Files:
-
- branches/1.2/lib/config/sfFactoryConfigHandler.class.php (modified) (1 diff)
- branches/1.2/lib/request/sfWebRequest.class.php (modified) (1 diff)
- branches/1.2/test/unit/filter/sfCommonFilterTest.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.2/lib/config/sfFactoryConfigHandler.class.php
r10627 r11277 97 97 $instances[] = sprintf(" \$class = sfConfig::get('sf_factory_response', '%s');\n \$this->factories['response'] = new \$class(\$this->dispatcher, sfConfig::get('sf_factory_response_parameters', %s));", $class, var_export($parameters, true)); 98 98 // TODO: this is a bit ugly, as it only works for sfWebRequest & sfWebResponse combination. see #3397 99 $instances[] = sprintf(" if (\$this->factories['request'] instanceof sfWebRequest \n && \$this->factories['response'] instanceof sfWebResponse \n && 'HEAD' == \$this->factories['request']->getMethod Name())\n { \n \$this->factories['response']->setHeaderOnly(true);\n }\n");99 $instances[] = sprintf(" if (\$this->factories['request'] instanceof sfWebRequest \n && \$this->factories['response'] instanceof sfWebResponse \n && 'HEAD' == \$this->factories['request']->getMethod())\n { \n \$this->factories['response']->setHeaderOnly(true);\n }\n"); 100 100 break; 101 101 branches/1.2/lib/request/sfWebRequest.class.php
r11256 r11277 308 308 if ($this->options['logging']) 309 309 { 310 $this->dispatcher->notify(new sfEvent($this, 'application.log', array('The "sfWebRequest::getMethodName()" method is deprecated, please use "getMethod()" instead.' )));310 $this->dispatcher->notify(new sfEvent($this, 'application.log', array('The "sfWebRequest::getMethodName()" method is deprecated, please use "getMethod()" instead.', 'priority' => sfLogger::WARNING))); 311 311 } 312 312 branches/1.2/test/unit/filter/sfCommonFilterTest.php
r5091 r11277 25 25 } 26 26 27 public function getMethod Name()27 public function getMethod() 28 28 { 29 29 return 'GET';