Skip to content
lorenzo edited this page Sep 14, 2010 · 7 revisions

Lib classes

CakeLog

  1. Log streams now need to implement `CakeLogInterface`. Exceptions will be raised if a configured logger does not.

Cache

  1. Cache is now a static class, it no longer has a `getInstance()` method.
  2. CacheEngine is now an abstract class. You cannot directly create instances of it anymore.
  3. CacheEngine implementations must extend CacheEngine, exceptions will be raised if a configured class does not.
  4. FileCache now requires trailing slashes to be added to the path setting when you are modifying a cache configuration.

Router

  1. You can no longer modify named parameter settings with Router::setRequestInfo();
  2. Router no longer has a getInstance() method. It is a static class, call its methods and properties statically.
  3. `Router::getNamedExpressions() `is deprecated. Use the new router constants. `Router::ACTION`, `Router::YEAR`, `Router::MONTH`, `Router::DAY`, `Router::ID`, and `Router::UUID` instead.

Dispatcher

  1. `Dispather::parseParams()` now only accepts a `CakeRequest` object.
  2. `Dispatcher::baseUrl()` has been removed.
  3. `Dispatcher::getUrl()` has been removed.
  4. `Dispatcher::uri()` has been removed.

Configure

  1. `Configure::read()` with no parameter no longer returns the value of ‘debug’ instead it returns all values in Configure. Use `Configure::read(‘debug’);` if you want the value of debug.

File

  1. This class has been deprecated, use SplFileObject instead.

Folder

  1. `Folder::pwd()` has been removed. Use $folder→path instead.
  2. `Folder::read()` has been removed. Use DirectoryIterator instead.
  3. `Folder::normalizePath()` has been removed.
  4. `Folder::correctSlashFor()` has been removed.
  5. `Folder::slashTerm()` has been removed.
  6. `Folder::isSlashTerm()` has been removed.
  7. `Folder::addPathElement()` has been removed.
  8. `Folder::dirsize()` renamed to `Folder::dirSize()`.

Xml

  1. The class Xml was completely refactored. Now this class does not manipulate data anymore, and it is a wrapper to SimpleXMLElement. You can use the follow methods:
  2. `Xml::build()`: static method that you can pass a xml string, array, path to file or url. The result will be a SimpleXMLElement instance or an exception will be thrown in case of error.
  3. `Xml::fromArray()`: static method that returns a SimpleXMLElement from an array.
  4. `Xml::toArray()`: static method that returns an array from SimpleXMLElement.

Clone this wiki locally