demianturner / sgl-docs-tickets-migration-test

0 stars 0 forks source link

make SGL libs independent from framework #1280

Open demianturner opened 11 years ago

demianturner commented 11 years ago

In the scenario where you want to use SGL libs, but none of the modules or default initialisation routines, you should be able to.

Seagull already has a clean namespace policy which makes this an easy exercise, something PEAR is now thinking about:

http://pear.php.net/pepr/pepr-proposal-show.php?id=420

Very shortly you will have to do include 'PEAR/Config.php' instead of include 'Config.php'.

All that needs to be done is for the SGL_CORE_DIR to be added to the include path, and for that constant to be removed in the code. So including Seagull's config class (which will not conflict with PEAR's fortunately as it's a PEAR wrapper) will be done like include 'SGL/Config.php';

demianturner commented 11 years ago

[demian] Milestone 0.7.0 deleted