Changeset 3751

Show
Ignore:
Timestamp:
02/13/08 03:05:10 (17 months ago)
Author:
guilhermeblanco
Message:

Merged r3567 into 0.9 and 0.10 branches

Location:
branches
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • branches/0.10/lib/Doctrine/Compiler.php

    r3189 r3751  
    4040     * 
    4141     * @throws Doctrine_Compiler_Exception      if something went wrong during the compile operation 
    42      * @return void 
     42     * @return $target Path the compiled file was written to 
    4343     */ 
    4444    public static function compile($target = null, $includedDrivers = array()) 
     
    134134        fwrite($fp, $stripped); 
    135135        fclose($fp); 
     136 
     137        return $target; 
    136138    } 
    137139} 
  • branches/0.10/lib/Doctrine/Task/Compile.php

    r2951 r3751  
    4040    public function execute() 
    4141    { 
    42         Doctrine::compile($this->getArgument('compiled_path'), $this->getArgument('drivers', array())); 
     42        $compiledPath = Doctrine::compile($this->getArgument('compiled_path'), $this->getArgument('drivers', array())); 
    4343         
    44         $this->notify('Compiled Doctrine successfully to: ' . $this->getArgument('compiled_path')); 
     44        $this->notify('Compiled Doctrine successfully to: ' . $compiledPath); 
    4545    } 
    4646} 
  • branches/0.9/lib/Doctrine/Compiler.php

    r2963 r3751  
    4040     * 
    4141     * @throws Doctrine_Compiler_Exception      if something went wrong during the compile operation 
    42      * @return void 
     42     * @return $target Path the compiled file was written to 
    4343     */ 
    4444    public static function compile($target = null, $includedDrivers = array()) 
     
    132132        fwrite($fp, $stripped); 
    133133        fclose($fp); 
     134 
     135        return $target; 
    134136    } 
    135137} 
  • branches/0.9/lib/Doctrine/Task/Compile.php

    r2951 r3751  
    4040    public function execute() 
    4141    { 
    42         Doctrine::compile($this->getArgument('compiled_path'), $this->getArgument('drivers', array())); 
     42        $compiledPath = Doctrine::compile($this->getArgument('compiled_path'), $this->getArgument('drivers', array())); 
    4343         
    44         $this->notify('Compiled Doctrine successfully to: ' . $this->getArgument('compiled_path')); 
     44        $this->notify('Compiled Doctrine successfully to: ' . $compiledPath); 
    4545    } 
    4646}