Changeset 331

Show
Ignore:
Timestamp:
12/27/07 22:04:37 (7 months ago)
Author:
hans
Message:

Refs #201 - Changing Phing::start() API to accept array of properties instead of Properties object.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.3/classes/phing/Phing.php

    r330 r331  
    151151         * @throws Exception - if there is an error during build 
    152152         */ 
    153         public static function start($args, $additionalUserProperties = null) { 
     153        public static function start($args, array $additionalUserProperties = null) { 
    154154                 
    155155                try { 
     
    162162 
    163163                if ($additionalUserProperties !== null) { 
    164                         $keys = $additionalUserProperties->keys(); 
    165                         while(count($keys)) { 
    166                                 $key = array_shift($keys); 
    167                                 $property = $additionalUserProperties->getProperty($key); 
    168                                 $m->setDefinedProperty($key, $property); 
     164                        foreach($additionalUserProperties as $key => $value) { 
     165                                $m->setDefinedProperty($key, $value); 
    169166                        } 
    170167                }