[Solar-svn] Revision 3234

pmjones at solarphp.com pmjones at solarphp.com
Thu Jul 17 15:21:03 CDT 2008


Solar: [CHG] Add support for file-based (include) callbacks, as with older versions of Solar (for Solar::start() and stop()).


Modified: trunk/Solar.php
===================================================================
--- trunk/Solar.php	2008-07-15 20:56:52 UTC (rev 3233)
+++ trunk/Solar.php	2008-07-17 20:21:03 UTC (rev 3234)
@@ -310,6 +310,9 @@
      *         
      *         // function call
      *         array(null, 'function', $param1, $param2, ...),
+     *         
+     *         // file include, as in previous versions of Solar
+     *         'path/to/file.php',
      *     );
      * }}
      * 
@@ -326,6 +329,12 @@
     {
         foreach ((array) $callbacks as $params) {
             
+            // include a file as in previous versions of Solar
+            if (is_string($params)) {
+                Solar_File::load($params);
+                continue;
+            }
+            
             // $spec is an object instance, class name, or registry key
             $spec = array_shift($params);
             if (! is_object($spec)) {




More information about the Solar-svn mailing list