1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-17 14:46:33 +02:00

add type hint, remove Exception

This commit is contained in:
pomaxa
2012-06-13 17:36:25 +03:00
parent 72ee0aee96
commit fb19840a8f

View File

@@ -34,12 +34,9 @@ class AmqpHandler extends AbstractProcessingHandler
* @param int $level
* @param bool $bubble Whether the messages that are handled can bubble up the stack or not
*/
public function __construct($exchange, $exchangeName = 'log', $issuer = 'default', $level = Logger::DEBUG, $bubble = true)
public function __construct(\AMQPExchange $exchange, $exchangeName = 'log', $issuer = 'default', $level = Logger::DEBUG, $bubble = true)
{
if (!$exchange instanceof \AMQPExchange) {
throw new \LogicException('AMQP handler requires a valid exchange to be provided');
}
$this->issuer = $issuer;
$this->exchange = $exchange;
$this->exchange->setName($exchangeName);