Skip to content

Commit a91a686

Browse files
committed
smaller fixes
1 parent 333afb1 commit a91a686

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

EventListener/LogToConsoleListener.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <[email protected]>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
namespace Symfony\Bundle\MonologBundle\EventListener;
413

514
use Symfony\Bundle\MonologBundle\Handler\ConsoleHandler;

Handler/ConsoleHandler.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

33
/*
4-
* This file is part of the Monolog package.
4+
* This file is part of the Symfony package.
55
*
6-
* (c) Jordi Boggiano <[email protected]>
6+
* (c) Fabien Potencier <[email protected]>
77
*
88
* For the full copyright and license information, please view the LICENSE
99
* file that was distributed with this source code.
@@ -170,7 +170,7 @@ protected function write(array $record)
170170
if (!is_resource($this->errorStream)) {
171171
$this->errorStream = null;
172172
$this->errorStreamCreated = false;
173-
throw new \UnexpectedValueException(sprintf('The stream "%s" could not be opened: '.$errorMessage, self::FALLBACK_STREAM));
173+
throw new \UnexpectedValueException(sprintf('The stream "%s" could not be opened: '.$errorMessage, self::FALLBACK_ERROR_STREAM));
174174
}
175175
$this->errorStreamCreated = true;
176176
}

Resources/config/monolog.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,10 @@
4141
<argument /><!-- Channel -->
4242
</service>
4343

44+
<!-- The MonologExtension removes the abstract flag when handlers of type "console" are used and inserts them -->
4445
<service id="monolog.listener.console" class="%monolog.listener.console.class%" abstract="true">
4546
<tag name="kernel.event_subscriber" />
46-
<argument /><!-- Array of ConsoleHandlers -->
47+
<argument type="collection" /><!-- Array of ConsoleHandler instances -->
4748
</service>
4849
</services>
4950
</container>

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"symfony/yaml": "~2.2-beta2"
2727
},
2828
"suggest": {
29-
"event-dispatcher": "For the possibility to show log messages in console commands depending on verbosity settings."
29+
"symfony/console": "For the possibility to show log messages in console commands depending on verbosity settings."
3030
},
3131
"autoload": {
3232
"psr-0": { "Symfony\\Bundle\\MonologBundle": "" }

0 commit comments

Comments
 (0)