[limb-issues] Resolved: (CRE-1) Simplify packages plug-in procedure using include_path, get rid of lmb_use_package and package constants

Pavel Shevaev (JIRA) jira at limb-project.com
Thu Oct 19 18:28:44 MSD 2006


     [ http://jira.limb-project.com/browse/CRE-1?page=all ]

Pavel Shevaev resolved CRE-1.
-----------------------------

    Resolution: Fixed

> Simplify packages plug-in procedure using include_path, get rid of lmb_use_package and package constants
> --------------------------------------------------------------------------------------------------------
>
>                 Key: CRE-1
>                 URL: http://jira.limb-project.com/browse/CRE-1
>             Project: CORE
>          Issue Type: Improvement
>    Affects Versions: 0.1
>            Reporter: Pavel Shevaev
>         Assigned To: Pavel Shevaev
>            Priority: Critical
>
> We need to greatly simplify the package usage, the most natural and most flexible seems to be the include_path way.
> There should be no package init-all-dependencies procedure once the package is plugged in. This init procedure must be done within the package where it's really neccessary, since not all dependencies are required.
> One more vote for using include_path is that it seems to be the de-facto way for code inclusion in PEAR, ZendFramework, Propel and other major PHP libraries. Let's not stand out of the crowd with some new and specific way of packages inclusion ;)
> So this is what we should do as the minimum:
> 1) remove all LPKG_* constants in favour of include_path: LPKG_ACTIVE_RECORD_DIR . '/src' => 'limb/active_record/src' and so on
> 2) remove lmb_use_package stuff - the hardest part is to decide properly where toolkit should be initialized
> 3) implement a number of simple global functions simplifying operations with include_path, e.g lmb_include_path_expand, lmb_include_path_glob, etc
> 4) WACT tags must be searched within include_path 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.limb-project.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the limb-issues mailing list