Skip to content

[consumption] Make QueueConsumer final #336

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 18, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pkg/enqueue/Consumption/QueueConsumer.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
use Interop\Queue\PsrQueue;
use Psr\Log\NullLogger;

class QueueConsumer
final class QueueConsumer
{
/**
* @var PsrContext
Expand Down Expand Up @@ -268,7 +268,7 @@ public function consume(ExtensionInterface $runtimeExtension = null)
*
* @return bool
*/
protected function doConsume(ExtensionInterface $extension, Context $context)
private function doConsume(ExtensionInterface $extension, Context $context)
{
$processor = $context->getPsrProcessor();
$consumer = $context->getPsrConsumer();
Expand Down Expand Up @@ -334,7 +334,7 @@ protected function doConsume(ExtensionInterface $extension, Context $context)
*
* @throws \Exception
*/
protected function onInterruptionByException(ExtensionInterface $extension, Context $context)
private function onInterruptionByException(ExtensionInterface $extension, Context $context)
{
$logger = $context->getLogger();
$logger->error(sprintf('Consuming interrupted by exception'));
Expand Down