You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by "Karsten Beyer (JIRA)" <ji...@apache.org> on 2008/06/19 14:51:46 UTC

[jira] Created: (SHINDIG-395) Local configuration file and extension class path

Local configuration file and extension class path
-------------------------------------------------

                 Key: SHINDIG-395
                 URL: https://issues.apache.org/jira/browse/SHINDIG-395
             Project: Shindig
          Issue Type: New Feature
          Components: Common Components (PHP)
         Environment: n/a
            Reporter: Karsten Beyer
            Priority: Minor


There should be a possibility to store local configuration values outside of svn control. The attached patch includes a local.config.php if it exists in which configuration values can be overwritten.

Additionally in order to keep the container specific handlers and other classes cleanly separated from the shindig project, it should be possible to add paths in which classes are searched for. This is implemented by adding the "extension_class_paths" parameter which should be an array of paths which is then used in the __autoload function to search for extension classes.

Patch will be attached immediately...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SHINDIG-395) Local configuration file and extension class path

Posted by "Chris Chabot (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SHINDIG-395?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12606380#action_12606380 ] 

Chris Chabot commented on SHINDIG-395:
--------------------------------------

patch looks good, ill see about committing later today once im back to my main computer.

ps, it's always a good idea to do a:
if (is_array($scan_paths)) {
   $locations = array_merge($scan_paths, $locations);
}

else it's a fatal error and bug reports in the future :)

That being said most 'multiple config keys' use a , separated string and not an array type so it's probably better to do a:

if (!empty($scan_paths) {
   $locations = array_merge(explode(',', $scan_paths), $locations);
}


> Local configuration file and extension class path
> -------------------------------------------------
>
>                 Key: SHINDIG-395
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-395
>             Project: Shindig
>          Issue Type: New Feature
>          Components: Common Components (PHP)
>         Environment: n/a
>            Reporter: Karsten Beyer
>            Priority: Minor
>         Attachments: fix-issue-SHINDIG-395.patch
>
>
> There should be a possibility to store local configuration values outside of svn control. The attached patch includes a local.config.php if it exists in which configuration values can be overwritten.
> Additionally in order to keep the container specific handlers and other classes cleanly separated from the shindig project, it should be possible to add paths in which classes are searched for. This is implemented by adding the "extension_class_paths" parameter which should be an array of paths which is then used in the __autoload function to search for extension classes.
> Patch will be attached immediately...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SHINDIG-395) Local configuration file and extension class path

Posted by "Karsten Beyer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SHINDIG-395?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karsten Beyer updated SHINDIG-395:
----------------------------------

    Attachment: fix-issue-SHINDIG-395.patch

> Local configuration file and extension class path
> -------------------------------------------------
>
>                 Key: SHINDIG-395
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-395
>             Project: Shindig
>          Issue Type: New Feature
>          Components: Common Components (PHP)
>         Environment: n/a
>            Reporter: Karsten Beyer
>            Priority: Minor
>         Attachments: fix-issue-SHINDIG-395.patch
>
>
> There should be a possibility to store local configuration values outside of svn control. The attached patch includes a local.config.php if it exists in which configuration values can be overwritten.
> Additionally in order to keep the container specific handlers and other classes cleanly separated from the shindig project, it should be possible to add paths in which classes are searched for. This is implemented by adding the "extension_class_paths" parameter which should be an array of paths which is then used in the __autoload function to search for extension classes.
> Patch will be attached immediately...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.