From e4d533ec7fae960da4918b0711cd7077606678af Mon Sep 17 00:00:00 2001 From: Graham Knop Date: Thu, 11 Mar 2010 09:50:28 -0600 Subject: [PATCH] add migration notes --- docs/migration.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/migration.txt b/docs/migration.txt index 4d6f09d25..dfbf12e8f 100644 --- a/docs/migration.txt +++ b/docs/migration.txt @@ -5,6 +5,22 @@ The information contained herein documents the API changes that have occurred in +WebGUI::Config +============= +WebGUI::Config->new has a new API. Its WebGUI root parameter has been eliminated. It now only accepts a config file as either an absolute path, or a path relative to WebGUI's etc directory. + +my $config = WebGUI::Config->new($filename); + + + +WebGUI::Session +============= +WebGUI::Session->open has a new API. Its WebGUI root parameter has been eliminated. The config file it is given can be either an absolute path, or a path relative to WebGUI's etc directory. + +my $session = WebGUI::Session->open($configFile, $request, $server); + + + WebGUI::Cache ============= WebGUI::Cache has been completely rewritten. If you were using the cache API in the past, you'll need to update your code to reflect the changes. NOTE: you can get a cached reference to the cache object from WebGUI::Session, which will be substantially faster than instantiating the object yourself.