Skip to content
This repository has been archived by the owner on Jul 28, 2022. It is now read-only.

Commit

Permalink
Merge 3.x into master
Browse files Browse the repository at this point in the history
  • Loading branch information
SonataCI committed Mar 19, 2019
2 parents e2bf356 + b76ee85 commit 3147506
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/reference/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ logger consumer creation::
namespace Sonata\NotificationBundle\Consumer;

use Sonata\NotificationBundle\Consumer\ConsumerInterface;
use Sonata\NotificationBundle\Exception\InvalidParameterException;
use Sonata\NotificationBundle\Model\MessageInterface;
use Symfony\Component\HttpKernel\Log\LoggerInterface;

Expand Down Expand Up @@ -78,7 +77,7 @@ logger consumer creation::
$message = $event->getMessage();

if (!in_array($message->getValue('level'), $this->types)) {
throw new InvalidParameterException();
throw new \RuntimeException('Invalid parameter');
}

call_user_func([$this->logger, $message->getValue('level')], $message->getValue('message'));
Expand Down

0 comments on commit 3147506

Please sign in to comment.