Author: chabotc
Date: Wed Jun 25 17:13:56 2008
New Revision: 671695

URL: http://svn.apache.org/viewvc?rev=671695&view=rev
Log:
Add support for extension_class_paths, a , seperated list of paths to scan in 
the autoloader. Quite useful to include your own custom classes without having 
to copy them into shindig

Modified:
    incubator/shindig/trunk/php/index.php

Modified: incubator/shindig/trunk/php/index.php
URL: 
http://svn.apache.org/viewvc/incubator/shindig/trunk/php/index.php?rev=671695&r1=671694&r2=671695&view=diff
==============================================================================
--- incubator/shindig/trunk/php/index.php (original)
+++ incubator/shindig/trunk/php/index.php Wed Jun 25 17:13:56 2008
@@ -62,6 +62,10 @@
                $locations[] = 'src/socialdata/opensocial';
                $locations[] = 'src/socialdata/samplecontainer';
        }
+       $extension_class_paths = Config::get('extension_class_paths');
+       if (!empty($extension_class_paths)) {
+               $locations = array_merge(explode(',', $extension_class_paths), 
$locations);
+       }
        // Check for the presense of this class in our all our directories.
        $fileName = $className . '.php';
        foreach ($locations as $path) {


Reply via email to