Development

Changeset 7814

You must first sign up to be able to contribute.

Changeset 7814

Show
Ignore:
Timestamp:
03/12/08 01:57:54 (7 months ago)
Author:
fabien
Message:

changed logSection() and log() method to public to be able to use them from the outside

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/lib/task/sfCommandApplicationTask.class.php

    r7400 r7814  
    3030   * @see sfTask 
    3131   */ 
    32   protected function log($messages) 
     32  public function log($messages) 
    3333  { 
    3434    if (is_null($this->commandApplication) || $this->commandApplication->isVerbose()) 
     
    4141   * @see sfTask 
    4242   */ 
    43   protected function logSection($section, $message, $size = null) 
     43  public function logSection($section, $message, $size = null) 
    4444  { 
    4545    if (is_null($this->commandApplication) || $this->commandApplication->isVerbose()) 
  • branches/1.1/lib/task/sfTask.class.php

    r7397 r7814  
    280280   * @param mixed The message as an array of lines of a single string 
    281281   */ 
    282   protected function log($messages) 
     282  public function log($messages) 
    283283  { 
    284284    if (!is_array($messages)) 
     
    297297   * @param integer The maximum size of a line 
    298298   */ 
    299   protected function logSection($section, $message, $size = null) 
     299  public function logSection($section, $message, $size = null) 
    300300  { 
    301301    $this->dispatcher->notify(new sfEvent($this, 'command.log', array($this->formatter->formatSection($section, $message, $size))));