Development

Upgrade1.1-DeprecatedMethods

You must first sign up to be able to contribute.

Deprecated Methods in Core Classes

Three key classes, sfAction, sfRequest, and sfWebRequest, have had a number of methods deprecated. These methods are still available if you have enabled 1.0 compatibility mode, but otherwise they will throw an exception. Because of the effort involved in converting these, you may wish to enable compatibility mode for now, and migrate these uses over time.

Deprecated methods in sfAction

The following methods of sfAction have been deprecated and throw a sfConfigurationException if sf_compat_10 is set to false:

  • ->validate()
  • ->handleError()

Deprecated methods in sfRequest

The following methods of sfRequest have been deprecated and throw a sfConfigurationException if sf_compat_10 is set to false. Note that the new forms mechanism is the preferred way to deal with these functions, but that means it's non-trivial to migrate your use of these functions.

  • ->getError()
  • ->getErrors()
  • ->getErrorNames()
  • ->hasError()
  • ->hasErrors()
  • ->setError()
  • ->setErrors()
  • ->removeError()

Deprecated methods in sfWebRequest

The following methods of sfWebRequest have been deprecated and throw a sfConfigurationException if sf_compat_10 is set to false:

  • ->getFile()
  • ->getFileError()
  • ->getFileName()
  • ->getFileNames()
  • ->getFilePath()
  • ->getFileSize()
  • ->getFileType()
  • ->hasFile()
  • ->hasFileError()
  • ->hasFileErrors()
  • ->hasFiles()
  • ->getFileValue()
  • ->getFileValues()
  • ->getFileExtension()
  • ->moveFile()