Repository navigation
Migration guide
jrbasso edited this page Sep 14, 2010
·
7 revisions
- Log streams now need to implement `CakeLogInterface`. Exceptions will be raised if a configured logger does not.
- Cache is now a static class, it no longer has a `getInstance()` method.
- CacheEngine is now an abstract class. You cannot directly create instances of it anymore.
- CacheEngine implementations must extend CacheEngine, exceptions will be raised if a configured class does not.
- FileCache now requires trailing slashes to be added to the path setting when you are modifying a cache configuration.
- You can no longer modify named parameter settings with Router::setRequestInfo();
- Router no longer has a getInstance() method. It is a static class, call its methods and properties statically.
- `Router::getNamedExpressions() `is deprecated. Use the new router constants. `Router::ACTION`, `Router::YEAR`, `Router::MONTH`, `Router::DAY`, `Router::ID`, and `Router::UUID` instead.
- `Dispather::parseParams()` now only accepts a `CakeRequest` object.
- `Dispatcher::baseUrl()` has been removed.
- `Dispatcher::getUrl()` has been removed.
- `Dispatcher::uri()` has been removed.
- `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.
- This class has deprecated, use SplFileObject instead
- `Folder::pwd()` has been removed. Use $folder→path instead.
- `Folder::read()` has been removed. Use DirectoryIterator instead.
- `Folder::normalizePath()` has been removed.
- `Folder::correctSlashFor()` has been removed.
- `Folder::slashTerm()` has been removed.
- `Folder::isSlashTerm()` has been removed.
- `Folder::addPathElement()` has been removed.
- `Folder::dirsize()` changed to `Folder::dirSize()`.