public function initialize(sfEventDispatcher $dispatcher, $options = array()) { $options = array_merge(array('steps' => 100, 'text' => '', 'delim' => '*', 'maxchars' => 70), $options); $this->steps = abs($options['steps']); $this->step = 0; $this->text = $options['text']; $this->delim = $options['delim']; $this->maxchars = $options['maxchars']; parent::initialize($dispatcher, $options); }
/** * Initializes this logger. * * @param sfEventDispatcher $dispatcher A sfEventDispatcher instance * @param array $options An array of options. */ public function initialize(sfEventDispatcher $dispatcher, $options = array()) { $dispatcher->connect('command.log', array($this, 'listenToLogEvent')); return parent::initialize($dispatcher, $options); }