|
Revision 10952, 0.8 kB
(checked in by fabien, 5 years ago)
|
[1.1, 1.2] fixed STDOUT only exists with php-cli (closes #4203)
|
- Property svn:mime-type set to
text/x-php
- Property svn:eol-style set to
native
- Property svn:keywords set to
Id
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
class sfConsoleLogger extends sfStreamLogger |
|---|
| 20 |
{ |
|---|
| 21 |
|
|---|
| 22 |
* @see sfStreamLogger |
|---|
| 23 |
*/ |
|---|
| 24 |
public function initialize(sfEventDispatcher $dispatcher, $options = array()) |
|---|
| 25 |
{ |
|---|
| 26 |
$options['stream'] = defined('STDOUT') ? STDOUT : fopen('php://stdout', 'w'); |
|---|
| 27 |
|
|---|
| 28 |
return parent::initialize($dispatcher, $options); |
|---|
| 29 |
} |
|---|
| 30 |
} |
|---|
| 31 |
|
|---|