Skip to content
jrbasso 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.

Clone this wiki locally