root/trunk/UPGRADE

Revision 132, 0.9 kB (checked in by mikey, 8 months ago)

with PRE_NAMESPACES going 0.3.0 HEAD becomes 0.4.0

Line 
1 Upgrading from v0.3.x and lower to v0.4.0
2 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3
4 This document describes the steps you need to do when upgrading XJConf from any
5 of the 0.3.x versions and lower to 0.4.0.
6
7 1. Remove all includes of XJConf classes by hand. Instead, just include
8    XJConf/XJConf.php at the beginning of your application or script. This will
9    register an autoload method that takes care of loading all other classes
10    from XJConf.
11
12 2. Replace every occurance of XJConfLoader::load('package.ClassName'); with
13    use net::xjconf::package::ClassName;.
14    For example, if you use the XJConfFacade, you need to replace
15    XJConfLoader::load('XJConfFacade');
16    with
17    use net::xjconf::XJConfFacade;
18    while using
19    XJConfLoader::load('DefinitionParser', 'XmlParser');
20    needs to be replaced with
21    use net::xjconf::DefinitionParser;
22    use net::xjconf::XmlParser;
Note: See TracBrowser for help on using the browser.