Development

Changeset 11277

You must first sign up to be able to contribute.

Changeset 11277

Show
Ignore:
Timestamp:
09/01/08 15:31:33 (5 years ago)
Author:
fabien
Message:

[1.2] removed getMethodName() usage in core + changed deprecated log to a warning

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.2/lib/config/sfFactoryConfigHandler.class.php

    r10627 r11277  
    9797          $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)); 
    9898          // 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']->getMethodName())\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"); 
    100100          break; 
    101101 
  • branches/1.2/lib/request/sfWebRequest.class.php

    r11256 r11277  
    308308    if ($this->options['logging']) 
    309309    { 
    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))); 
    311311    } 
    312312 
  • branches/1.2/test/unit/filter/sfCommonFilterTest.php

    r5091 r11277  
    2525  } 
    2626 
    27   public function getMethodName() 
     27  public function getMethod() 
    2828  { 
    2929    return 'GET';